diff options
author | Alejandro Marzini | 2010-06-27 05:12:37 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-06-27 05:12:37 +0000 |
commit | 936f5585794972bb76b25164890315786dbe3401 (patch) | |
tree | aa62535f9a9d2cf760ea18f4c869871ea053ed66 /backends/platform/sdl/sdl.cpp | |
parent | 62ac3982aa5ba81a29ff4bf5b1ac1e3d2647eb9b (diff) | |
download | scummvm-rg350-936f5585794972bb76b25164890315786dbe3401.tar.gz scummvm-rg350-936f5585794972bb76b25164890315786dbe3401.tar.bz2 scummvm-rg350-936f5585794972bb76b25164890315786dbe3401.zip |
Improved getDefaultConfigFileName(). Code cleanup.
svn-id: r50364
Diffstat (limited to 'backends/platform/sdl/sdl.cpp')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 832f6ffb78..574eeb5a9a 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -24,10 +24,7 @@ */ #include "backends/platform/sdl/sdl.h" -#include "common/archive.h" #include "common/config-manager.h" -#include "common/debug.h" -#include "common/util.h" #include "common/EventRecorder.h" #include "backends/saves/default/default-saves.h" @@ -127,14 +124,8 @@ void OSystem_SDL::addSysArchivesToSearchSet(Common::SearchSet &s, int priority) } -const char *OSystem_SDL::getConfigFileNameString() { - return "scummvm.ini"; -} - Common::String OSystem_SDL::getDefaultConfigFileName() { - char configFile[MAXPATHLEN]; - strcpy(configFile, getConfigFileNameString()); - return configFile; + return "scummvm.ini"; } Common::SeekableReadStream *OSystem_SDL::createConfigReadStream() { |