aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/sdl.h
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/sdl.h
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/sdl.h')
-rw-r--r--backends/platform/sdl/sdl.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h
index c746d2d2dd..521e67a915 100644
--- a/backends/platform/sdl/sdl.h
+++ b/backends/platform/sdl/sdl.h
@@ -94,6 +94,16 @@ protected:
#endif
/**
+ * The path of the currently open log file, if any.
+ *
+ * @note This is currently a string and not an FSNode for simplicity;
+ * e.g. we don't need to include fs.h here, and currently the
+ * only use of this value is to use it to open the log file in an
+ * editor; for that, we need it only as a string anyway.
+ */
+ Common::String _logFilePath;
+
+ /**
* Mixer manager that configures and setups SDL for
* the wrapped Audio::Mixer, the true mixer.
*/
@@ -122,7 +132,8 @@ protected:
virtual AudioCDManager *createAudioCDManager();
// Logging
- virtual Common::WriteStream *createLogFile() { return 0; }
+ virtual Common::String getDefaultLogFileName() { return Common::String(); }
+ virtual Common::WriteStream *createLogFile();
Backends::Log::Log *_logger;
#ifdef USE_OPENGL