[Scummvm-git-logs] scummvm master -> c8f89326a8b32bcb71ec8a95d14d49b171ea9ad3
digitall
noreply at scummvm.org
Tue Nov 15 08:36:38 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
c8f89326a8 AMIGAOS: Add first time user defaults
Commit: c8f89326a8b32bcb71ec8a95d14d49b171ea9ad3
https://github.com/scummvm/scummvm/commit/c8f89326a8b32bcb71ec8a95d14d49b171ea9ad3
Author: Hubert Maier (raziel- at users.noreply.github.com)
Date: 2022-11-15T08:36:33Z
Commit Message:
AMIGAOS: Add first time user defaults
Changed paths:
backends/platform/sdl/amigaos/amigaos.cpp
diff --git a/backends/platform/sdl/amigaos/amigaos.cpp b/backends/platform/sdl/amigaos/amigaos.cpp
index a64d11b165c..1159b624e9e 100644
--- a/backends/platform/sdl/amigaos/amigaos.cpp
+++ b/backends/platform/sdl/amigaos/amigaos.cpp
@@ -49,8 +49,10 @@ bool OSystem_AmigaOS::hasFeature(Feature f) {
}
void OSystem_AmigaOS::initBackend() {
- // AmigaOS4 SDL provides two OpenGL implementations (OpenGL 1.3 with miniGL and OpenGL ES with OGLES2)
- // This is chosen by setting the profile mask attribute before the first window creation but after init
+ // AmigaOS4 SDL provides two OpenGL implementations
+ // (OpenGL 1.3 with miniGL and OpenGL ES with OGLES2)
+ // This is chosen by setting the profile mask attribute
+ // before the first window creation but after init
int force = 0;
if (ConfMan.hasKey("opengl_implementation")) {
Common::String implem = ConfMan.get("opengl_implementation");
@@ -97,7 +99,48 @@ void OSystem_AmigaOS::initBackend() {
force = 1;
}
}
-
+ // First time user defaults
+ ConfMan.registerDefault("audio_buffer_size", "2048");
+ ConfMan.registerDefault("aspect_ratio", true);
+ ConfMan.registerDefault("fullscreen", true);
+ ConfMan.registerDefault("gfx_mode", "opengl");
+ ConfMan.registerDefault("stretch_mode", "stretch");
+ ConfMan.registerDefault("gui_mode", "antialias");
+ ConfMan.registerDefault("gui_theme", "scummremastered");
+ ConfMan.registerDefault("gui_scale", "125");
+ ConfMan.registerDefault("extrapath", "extras/");
+ ConfMan.registerDefault("themepath", "themes/");
+ // First time .ini defaults
+ if (!ConfMan.hasKey("audio_buffer_size")) {
+ ConfMan.set("audio_buffer_size", "2048");
+ }
+ if (!ConfMan.hasKey("aspect_ratio")) {
+ ConfMan.setBool("aspect_ratio", true);
+ }
+ if (!ConfMan.hasKey("fullscreen")) {
+ ConfMan.setBool("fullscreen", true);
+ }
+ if (!ConfMan.hasKey("gfx_mode")) {
+ ConfMan.set("gfx_mode", "opengl");
+ }
+ if (!ConfMan.hasKey("stretch_mode")) {
+ ConfMan.set("stretch_mode", "stretch");
+ }
+ if (!ConfMan.hasKey("gui_mode")) {
+ ConfMan.set("gui_mode", "antialias");
+ }
+ if (!ConfMan.hasKey("gui_theme")) {
+ ConfMan.set("gui_theme", "scummremastered");
+ }
+ if (!ConfMan.hasKey("gui_scale")) {
+ ConfMan.set("gui_scale", "125");
+ }
+ if (!ConfMan.hasKey("extrapath")) {
+ ConfMan.set("extrapath", "extras/");
+ }
+ if (!ConfMan.hasKey("themepath")) {
+ ConfMan.set("themepath", "themes/");
+ }
OSystem_SDL::initBackend();
}
More information about the Scummvm-git-logs
mailing list