Make sure our config default values get properly registered
svn-id: r22345
This commit is contained in:
parent
6321cfc874
commit
c46301bcc2
3 changed files with 6 additions and 3 deletions
|
@ -150,7 +150,7 @@ static void usage(const char *s, ...) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
GameDetector::GameDetector() {
|
||||
void GameDetector::registerDefaults() {
|
||||
|
||||
// Graphics
|
||||
ConfMan.registerDefault("fullscreen", false);
|
||||
|
|
|
@ -35,7 +35,7 @@ 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);
|
||||
|
|
|
@ -324,6 +324,9 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
|
|||
assert(g_system);
|
||||
OSystem &system = *g_system;
|
||||
|
||||
// Register config manager defaults
|
||||
GameDetector::registerDefaults();
|
||||
|
||||
// Parse the command line
|
||||
Common::StringMap settings;
|
||||
command = GameDetector::parseCommandLine(settings, argc, argv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue