aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorEugene Sandulenko2006-10-06 19:01:39 +0000
committerEugene Sandulenko2006-10-06 19:01:39 +0000
commit3d84f1104688db0b23b6fe9ccc86b587ac597837 (patch)
treedf9c7c4fdbfbbb8c1aa67d6e5f4ffc9bcdac9fb4 /common
parente75bea0c8f454bbeac842414a7ab8c4c77321801 (diff)
downloadscummvm-rg350-3d84f1104688db0b23b6fe9ccc86b587ac597837.tar.gz
scummvm-rg350-3d84f1104688db0b23b6fe9ccc86b587ac597837.tar.bz2
scummvm-rg350-3d84f1104688db0b23b6fe9ccc86b587ac597837.zip
Patch #1432376: "Very basic GP2X Backend"
svn-id: r24144
Diffstat (limited to 'common')
-rw-r--r--common/config-manager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/config-manager.cpp b/common/config-manager.cpp
index 354a48e031..0f80e5c84f 100644
--- a/common/config-manager.cpp
+++ b/common/config-manager.cpp
@@ -89,7 +89,7 @@ ConfigManager::ConfigManager()
void ConfigManager::loadDefaultConfigFile() {
char configFile[MAXPATHLEN];
-#if defined(UNIX)
+#if defined(UNIX) && !defined(GP2X) // GP2X is Linux based but Home dir can be read only so do not use it and put the config in the executable dir.
const char *home = getenv("HOME");
if (home != NULL && strlen(home) < MAXPATHLEN)
snprintf(configFile, MAXPATHLEN, "%s/%s", home, DEFAULT_CONFIG_FILE);
@@ -335,7 +335,7 @@ void ConfigManager::writeDomain(FILE *file, const String &name, const Domain &do
const ConfigManager::Domain *ConfigManager::getDomain(const String &domName) const {
assert(!domName.empty());
assert(isValidDomainName(domName));
-
+
if (domName == kTransientDomain)
return &_transientDomain;
if (domName == kApplicationDomain)
@@ -349,7 +349,7 @@ const ConfigManager::Domain *ConfigManager::getDomain(const String &domName) con
ConfigManager::Domain *ConfigManager::getDomain(const String &domName) {
assert(!domName.empty());
assert(isValidDomainName(domName));
-
+
if (domName == kTransientDomain)
return &_transientDomain;
if (domName == kApplicationDomain)
@@ -527,7 +527,7 @@ void ConfigManager::set(const String &key, const String &value, const String &do
key.c_str(), value.c_str(), domName.c_str());
(*domain)[key] = value;
-
+
// TODO/FIXME: We used to erase the given key from the transient domain
// here. Do we still want to do that?
// It was probably there to simplify the options dialogs code: