diff --git a/src/Config.cpp b/src/Config.cpp index 4182dbae..aca3d4f9 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -28,12 +28,18 @@ namespace Config const char* kConfigFile = "melonDS.ini"; +int _3DRenderer; int Threaded3D; +int GL_Antialias; + ConfigEntry ConfigFile[] = { + {"3DRenderer", 0, &_3DRenderer, 1, NULL, 0}, {"Threaded3D", 0, &Threaded3D, 1, NULL, 0}, + {"GL_Antialias", 0, &GL_Antialias, 0, NULL, 0}, + {"", -1, NULL, 0, NULL, 0} }; diff --git a/src/Config.h b/src/Config.h index 25d1ee2c..8dc97d53 100644 --- a/src/Config.h +++ b/src/Config.h @@ -40,8 +40,11 @@ bool HasConfigFile(const char* fileName); void Load(); void Save(); +extern int _3DRenderer; extern int Threaded3D; +extern int GL_Antialias; + } #endif // CONFIG_H diff --git a/src/libui_sdl/PlatformConfig.cpp b/src/libui_sdl/PlatformConfig.cpp index 2daf7467..065d9c2c 100644 --- a/src/libui_sdl/PlatformConfig.cpp +++ b/src/libui_sdl/PlatformConfig.cpp @@ -40,6 +40,10 @@ int ScreenLayout; int ScreenSizing; int ScreenFilter; +int ScreenScale; +int ScreenRatio; +int ScreenScaleMode; + int LimitFPS; int DirectBoot; @@ -101,6 +105,10 @@ ConfigEntry PlatformConfigFile[] = {"ScreenSizing", 0, &ScreenSizing, 0, NULL, 0}, {"ScreenFilter", 0, &ScreenFilter, 1, NULL, 0}, + {"ScreenScale", 0, &ScreenScale, 0, NULL, 0}, + {"ScreenRatio", 0, &ScreenRatio, 0, NULL, 0}, + {"ScreenScaleMode", 0, &ScreenScaleMode, 0, NULL, 0}, + {"LimitFPS", 0, &LimitFPS, 1, NULL, 0}, {"DirectBoot", 0, &DirectBoot, 1, NULL, 0}, diff --git a/src/libui_sdl/PlatformConfig.h b/src/libui_sdl/PlatformConfig.h index ed31e184..0cff1d21 100644 --- a/src/libui_sdl/PlatformConfig.h +++ b/src/libui_sdl/PlatformConfig.h @@ -48,6 +48,10 @@ extern int ScreenLayout; extern int ScreenSizing; extern int ScreenFilter; +extern int ScreenScale; +extern int ScreenRatio; +extern int ScreenScaleMode; + extern int LimitFPS; extern int DirectBoot;