This commit is contained in:
parent
fdefe42612
commit
ff435253ef
|
|
@ -0,0 +1,3 @@
|
||||||
|
begin
|
||||||
|
print("YOOOO THIS WORK!")
|
||||||
|
end
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Overrides
|
||||||
|
Main
|
||||||
14
src/main.cpp
14
src/main.cpp
|
|
@ -66,10 +66,10 @@ static inline const char* glGetStringInt(GLenum name){
|
||||||
}
|
}
|
||||||
|
|
||||||
static void printGLInfo(){
|
static void printGLInfo(){
|
||||||
Debug() << "[main.cpp]GL Vendor :" << glGetStringInt(GL_VENDOR);
|
Debug() << "[main.cpp] GL Vendor :" << glGetStringInt(GL_VENDOR);
|
||||||
Debug() << "[main.cpp]GL Renderer :" << glGetStringInt(GL_RENDERER);
|
Debug() << "[main.cpp] GL Renderer :" << glGetStringInt(GL_RENDERER);
|
||||||
Debug() << "[main.cpp]GL Version :" << glGetStringInt(GL_VERSION);
|
Debug() << "[main.cpp] GL Version :" << glGetStringInt(GL_VERSION);
|
||||||
Debug() << "[main.cpp]GLSL Version :" << glGetStringInt(GL_SHADING_LANGUAGE_VERSION);
|
Debug() << "[main.cpp] GLSL Version :" << glGetStringInt(GL_SHADING_LANGUAGE_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
int rgssThreadFun(void *userdata){
|
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_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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue