diff options
author | James Brown | 2002-05-13 16:09:11 +0000 |
---|---|---|
committer | James Brown | 2002-05-13 16:09:11 +0000 |
commit | 383bbc64ef5acc89a02ab925923709a8130dbb4d (patch) | |
tree | 6b42af2fba3c17db6447b2ec194f5a61a9a7b4c3 /main.cpp | |
parent | f33ced1a6f14d3928b4010af6622235eaaec703c (diff) | |
download | scummvm-rg350-383bbc64ef5acc89a02ab925923709a8130dbb4d.tar.gz scummvm-rg350-383bbc64ef5acc89a02ab925923709a8130dbb4d.tar.bz2 scummvm-rg350-383bbc64ef5acc89a02ab925923709a8130dbb4d.zip |
Oops, two post-tag changes to the config file system.
svn-id: r4306
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -144,7 +144,15 @@ game settings! /* On Unix, do a quick endian / alignement check before starting */ do_memory_test(); #else - scummcfg = new Config(DEFAULT_CONFIG_FILE, "scummvm"); + char scummhome[255]; + #if defined (WIN32) && !defined(_WIN32_WCE) + GetWindowsDirectory(scummhome, 255); + strcat(scummhome, "\\"); + strcat(scummhome, DEFAULT_CONFIG_FILE); + #else + strcpy(scummhome,DEFAULT_CONFIG_FILE); + #endif + scummcfg = new Config(scummhome, "scummvm"); #endif scummcfg->set("versioninfo", SCUMMVM_VERSION); if (detector.detectMain(argc, argv)) |