aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/posix/posix.h
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-27 05:12:37 +0000
committerAlejandro Marzini2010-06-27 05:12:37 +0000
commit936f5585794972bb76b25164890315786dbe3401 (patch)
treeaa62535f9a9d2cf760ea18f4c869871ea053ed66 /backends/platform/sdl/posix/posix.h
parent62ac3982aa5ba81a29ff4bf5b1ac1e3d2647eb9b (diff)
downloadscummvm-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/posix/posix.h')
-rw-r--r--backends/platform/sdl/posix/posix.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/backends/platform/sdl/posix/posix.h b/backends/platform/sdl/posix/posix.h
index 7e7e388229..13f9304f1e 100644
--- a/backends/platform/sdl/posix/posix.h
+++ b/backends/platform/sdl/posix/posix.h
@@ -30,15 +30,18 @@
class OSystem_POSIX : public OSystem_SDL {
public:
- OSystem_POSIX();
+ // Let the subclasses be able to change _baseConfigName in the constructor
+ OSystem_POSIX(Common::String baseConfigName = ".scummvmrc");
virtual ~OSystem_POSIX() {}
virtual void init();
-
virtual void initBackend();
protected:
- virtual const char *getConfigFileNameString();
+ // Base string for creating the default path and filename
+ // for the configuration file
+ Common::String _baseConfigName;
+
virtual Common::String getDefaultConfigFileName();
};