aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorJames Brown2002-05-13 16:09:11 +0000
committerJames Brown2002-05-13 16:09:11 +0000
commit383bbc64ef5acc89a02ab925923709a8130dbb4d (patch)
tree6b42af2fba3c17db6447b2ec194f5a61a9a7b4c3 /main.cpp
parentf33ced1a6f14d3928b4010af6622235eaaec703c (diff)
downloadscummvm-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.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 529159f6bd..d0ab26f146 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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))