aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/switch
diff options
context:
space:
mode:
authorCameron Cawley2019-08-04 21:45:17 +0100
committerFilippos Karapetis2019-08-05 10:01:30 +0300
commit8b8fb6d3a4748ded6f47cf057fc22f9aeab225d0 (patch)
tree363e8777d147e90a75ece84e6aca42be60697dc6 /backends/platform/sdl/switch
parentd10c69d0d1c596d4ecce9cbf967c75f3cf95a47b (diff)
downloadscummvm-rg350-8b8fb6d3a4748ded6f47cf057fc22f9aeab225d0.tar.gz
scummvm-rg350-8b8fb6d3a4748ded6f47cf057fc22f9aeab225d0.tar.bz2
scummvm-rg350-8b8fb6d3a4748ded6f47cf057fc22f9aeab225d0.zip
SDL: Simplify implementation of createLogFile()
Diffstat (limited to 'backends/platform/sdl/switch')
-rw-r--r--backends/platform/sdl/switch/switch.cpp5
-rw-r--r--backends/platform/sdl/switch/switch.h3
2 files changed, 3 insertions, 5 deletions
diff --git a/backends/platform/sdl/switch/switch.cpp b/backends/platform/sdl/switch/switch.cpp
index ef44cb4c4c..85e7b7a458 100644
--- a/backends/platform/sdl/switch/switch.cpp
+++ b/backends/platform/sdl/switch/switch.cpp
@@ -124,7 +124,6 @@ Common::String OSystem_Switch::getDefaultConfigFileName() {
return _baseConfigName;
}
-Common::WriteStream *OSystem_Switch::createLogFile() {
- Common::FSNode file("scummvm.log");
- return file.createWriteStream();
+Common::String OSystem_Switch::getDefaultLogFileName() {
+ return "scummvm.log";
}
diff --git a/backends/platform/sdl/switch/switch.h b/backends/platform/sdl/switch/switch.h
index b9e41e6fe4..61b4f3c058 100644
--- a/backends/platform/sdl/switch/switch.h
+++ b/backends/platform/sdl/switch/switch.h
@@ -44,8 +44,7 @@ protected:
Common::String _baseConfigName;
virtual Common::String getDefaultConfigFileName() override;
-
- virtual Common::WriteStream *createLogFile() override;
+ virtual Common::String getDefaultLogFileName() override;
};
#endif