aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/samsungtv
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/samsungtv
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/samsungtv')
-rw-r--r--backends/platform/samsungtv/samsungtv.cpp11
-rw-r--r--backends/platform/samsungtv/samsungtv.h9
2 files changed, 6 insertions, 14 deletions
diff --git a/backends/platform/samsungtv/samsungtv.cpp b/backends/platform/samsungtv/samsungtv.cpp
index 0b9279a423..bf6e20adae 100644
--- a/backends/platform/samsungtv/samsungtv.cpp
+++ b/backends/platform/samsungtv/samsungtv.cpp
@@ -25,7 +25,10 @@
#include "backends/platform/samsungtv/samsungtv.h"
-#if defined(SAMSUNGTV)
+OSystem_SDL_SamsungTV::OSystem_SDL_SamsungTV()
+ :
+ OSystem_POSIX("/dtv/usb/sda1/.scummvmrc") {
+}
bool OSystem_SDL_SamsungTV::hasFeature(Feature f) {
return
@@ -55,9 +58,3 @@ bool OSystem_SDL_SamsungTV::getFeatureState(Feature f) {
void OSystem_SDL_SamsungTV::quit() {
deinit();
}
-
-const char *OSystem_SDL_SamsungTV::getConfigFileNameString() {
- return "/dtv/usb/sda1/.scummvmrc";
-}
-
-#endif
diff --git a/backends/platform/samsungtv/samsungtv.h b/backends/platform/samsungtv/samsungtv.h
index 9ded2af11c..0c3e49ac63 100644
--- a/backends/platform/samsungtv/samsungtv.h
+++ b/backends/platform/samsungtv/samsungtv.h
@@ -26,22 +26,17 @@
#ifndef SDL_SAMSUNGTV_COMMON_H
#define SDL_SAMSUNGTV_COMMON_H
-#if defined(SAMSUNGTV)
-
#include "backends/platform/sdl/posix/posix.h"
class OSystem_SDL_SamsungTV : public OSystem_POSIX {
public:
+ OSystem_SDL_SamsungTV();
+
bool hasFeature(Feature f);
void setFeatureState(Feature f, bool enable);
bool getFeatureState(Feature f);
void quit();
-
-protected:
- const char *getConfigFileNameString();
};
#endif
-
-#endif