aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2003-07-03 22:06:13 +0000
committerMax Horn2003-07-03 22:06:13 +0000
commit3ed9aae095b4ed2aab2c3d7a43600bd2bb31d53b (patch)
treec5cb5907a7e0101e03799c29e57bdf33f5ab94ff /common
parentc60e1aeb86e61b9f29227b773ef98aeac6381f92 (diff)
downloadscummvm-rg350-3ed9aae095b4ed2aab2c3d7a43600bd2bb31d53b.tar.gz
scummvm-rg350-3ed9aae095b4ed2aab2c3d7a43600bd2bb31d53b.tar.bz2
scummvm-rg350-3ed9aae095b4ed2aab2c3d7a43600bd2bb31d53b.zip
const correctness
svn-id: r8727
Diffstat (limited to 'common')
-rw-r--r--common/gameDetector.cpp2
-rw-r--r--common/gameDetector.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index c17c78d31c..f228d9173e 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -642,7 +642,7 @@ int GameDetector::detectMain() {
if (!_gameDataPath) {
warning("No path was provided. Assuming the data files are in the current directory");
- _gameDataPath = "";
+ _gameDataPath = strdup("");
#ifndef __PALM_OS__ // add last slash also in File::fopenNoCase, so this is not needed
} else if (_gameDataPath[strlen(_gameDataPath)-1] != '/'
#ifdef __MORPHOS__
diff --git a/common/gameDetector.h b/common/gameDetector.h
index d9e5b104a5..697d05c7c4 100644
--- a/common/gameDetector.h
+++ b/common/gameDetector.h
@@ -70,7 +70,7 @@ struct VersionSettings {
ADLIB_NEVER = 3
} adlib;
uint32 features;
- char *detectname;
+ const char *detectname;
};
struct MusicDriver {