This commit is contained in:
ZakatTeamI2P 2026-05-03 15:36:26 +04:00
parent fdefe42612
commit ff435253ef
4 changed files with 17 additions and 14 deletions

3
scripts-test/Main.rb Normal file
View file

@ -0,0 +1,3 @@
begin
print("YOOOO THIS WORK!")
end

View file

@ -0,0 +1,2 @@
# Overrides
Main

View file

@ -66,10 +66,10 @@ static inline const char* glGetStringInt(GLenum name){
}
static void printGLInfo(){
Debug() << "[main.cpp]GL Vendor :" << glGetStringInt(GL_VENDOR);
Debug() << "[main.cpp]GL Renderer :" << glGetStringInt(GL_RENDERER);
Debug() << "[main.cpp]GL Version :" << glGetStringInt(GL_VERSION);
Debug() << "[main.cpp]GLSL Version :" << glGetStringInt(GL_SHADING_LANGUAGE_VERSION);
Debug() << "[main.cpp] GL Vendor :" << glGetStringInt(GL_VENDOR);
Debug() << "[main.cpp] GL Renderer :" << glGetStringInt(GL_RENDERER);
Debug() << "[main.cpp] GL Version :" << glGetStringInt(GL_VERSION);
Debug() << "[main.cpp] GLSL Version :" << glGetStringInt(GL_SHADING_LANGUAGE_VERSION);
}
int rgssThreadFun(void *userdata){
@ -217,10 +217,8 @@ int main(int argc, char *argv[]){
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
SDL_SetHint(SDL_HINT_APP_ID, "OneshotSunshine");
SDL_SetHint(SDL_HINT_APP_NAME, "Oneshot: Sunshine");
//deleted from SDL3
//SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
//SDL_SetHint(SDL_HINT_VIDEO_HIGHDPI_DISABLED, "1");
#if defined(__linux__)
//X11 work on *BSD,Solaris too!
#if defined(__linux__) || defined(BSD) || defined(__sun)
SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
#endif

View file

@ -22,7 +22,7 @@
#include <mmsystem.h>
#include <security.h>
#include <shlobj.h>
#elif defined __APPLE__ || __linux__
#elif defined __APPLE__ || __linux__ || BSD
#include <stdlib.h>
#include <unistd.h>
#include <pwd.h>
@ -32,15 +32,13 @@
#define OS_OSX
#include <dispatch/dispatch.h>
#else
#define OS_LINUX
#define OS_LINUX || BSD
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include "xdg-user-dir-lookup.h"
#endif
#elif defined __FreeBSD__ || __NetBSD__ || __OpenBSD__
#error "Work in progress:3"
#else
#error "Operating system not detected."
#error "Operating system not detected or unsupported."
#endif
#define DEF_SCREEN_W 640
@ -85,7 +83,7 @@ struct OneshotPrivate{
};
//OS-SPECIFIC FUNCTIONS
#if defined OS_LINUX
#if defined OS_LINUX || BSD
struct linux_DialogData{
// Input
int type;
@ -180,6 +178,8 @@ Oneshot::Oneshot(RGSSThreadData &threadData) :
p->os = "windows";
#elif defined OS_OSX
p->os = "macos";
#elif defined BSD
p->os = "BSD ";
#else
p->os = "linux";
#endif