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

@ -217,10 +217,8 @@ int main(int argc, char *argv[]){
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0"); SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
SDL_SetHint(SDL_HINT_APP_ID, "OneshotSunshine"); SDL_SetHint(SDL_HINT_APP_ID, "OneshotSunshine");
SDL_SetHint(SDL_HINT_APP_NAME, "Oneshot: Sunshine"); SDL_SetHint(SDL_HINT_APP_NAME, "Oneshot: Sunshine");
//deleted from SDL3 //X11 work on *BSD,Solaris too!
//SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0"); #if defined(__linux__) || defined(BSD) || defined(__sun)
//SDL_SetHint(SDL_HINT_VIDEO_HIGHDPI_DISABLED, "1");
#if defined(__linux__)
SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"); SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
#endif #endif

View File

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