From 8b8fb6d3a4748ded6f47cf057fc22f9aeab225d0 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Sun, 4 Aug 2019 21:45:17 +0100 Subject: SDL: Simplify implementation of createLogFile() --- backends/platform/sdl/switch/switch.cpp | 5 ++--- backends/platform/sdl/switch/switch.h | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'backends/platform/sdl/switch') 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 -- cgit v1.2.3