aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/macosx
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/macosx
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/macosx')
-rw-r--r--backends/platform/sdl/macosx/macosx.cpp8
-rw-r--r--backends/platform/sdl/macosx/macosx.h4
2 files changed, 3 insertions, 9 deletions
diff --git a/backends/platform/sdl/macosx/macosx.cpp b/backends/platform/sdl/macosx/macosx.cpp
index d6faf40294..458db07c31 100644
--- a/backends/platform/sdl/macosx/macosx.cpp
+++ b/backends/platform/sdl/macosx/macosx.cpp
@@ -33,7 +33,9 @@
#include "CoreFoundation/CoreFoundation.h"
-OSystem_MacOSX::OSystem_MacOSX() {
+OSystem_MacOSX::OSystem_MacOSX()
+ :
+ OSystem_POSIX("Library/Preferences/ScummVM Preferences") {
}
void OSystem_MacOSX::initBackend() {
@@ -49,10 +51,6 @@ void OSystem_MacOSX::initBackend() {
OSystem_POSIX::initBackend();
}
-const char *OSystem_MacOSX::getConfigFileNameString() {
- return "Library/Preferences/ScummVM Preferences";
-}
-
void OSystem_MacOSX::addSysArchivesToSearchSet(Common::SearchSet &s, int priority) {
// Invoke parent implementation of this method
OSystem_POSIX::addSysArchivesToSearchSet(s, priority);
diff --git a/backends/platform/sdl/macosx/macosx.h b/backends/platform/sdl/macosx/macosx.h
index cf50307ca8..e3a819f592 100644
--- a/backends/platform/sdl/macosx/macosx.h
+++ b/backends/platform/sdl/macosx/macosx.h
@@ -34,11 +34,7 @@ public:
~OSystem_MacOSX() {}
void initBackend();
-
void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0);
-
-protected:
- const char *getConfigFileNameString();
};
#endif