From 936f5585794972bb76b25164890315786dbe3401 Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Sun, 27 Jun 2010 05:12:37 +0000 Subject: Improved getDefaultConfigFileName(). Code cleanup. svn-id: r50364 --- backends/platform/sdl/sdl.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'backends/platform/sdl/sdl.cpp') 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() { -- cgit v1.2.3