mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
Make sure our config default values get properly registered
svn-id: r22345
This commit is contained in:
parent
6321cfc874
commit
c46301bcc2
@ -150,7 +150,7 @@ static void usage(const char *s, ...) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
GameDetector::GameDetector() {
|
||||
void GameDetector::registerDefaults() {
|
||||
|
||||
// Graphics
|
||||
ConfMan.registerDefault("fullscreen", false);
|
||||
|
@ -35,8 +35,8 @@ class GameDetector {
|
||||
typedef Common::String String;
|
||||
|
||||
public:
|
||||
GameDetector();
|
||||
|
||||
static void registerDefaults();
|
||||
|
||||
static Common::String parseCommandLine(Common::StringMap &settings, int argc, char **argv);
|
||||
static void processSettings(Common::String &target, Common::StringMap &settings);
|
||||
static const Plugin *detectMain();
|
||||
|
@ -323,6 +323,9 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
|
||||
// Verify that the backend has been initialized (i.e. g_system has been set).
|
||||
assert(g_system);
|
||||
OSystem &system = *g_system;
|
||||
|
||||
// Register config manager defaults
|
||||
GameDetector::registerDefaults();
|
||||
|
||||
// Parse the command line
|
||||
Common::StringMap settings;
|
||||
|
Loading…
x
Reference in New Issue
Block a user