aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2011-06-03 12:08:37 +0200
committerMax Horn2011-06-03 13:36:04 +0200
commit279a5b4f32ebd9ed9df4390995e4bfc4da38f1df (patch)
tree49f607b86dbc35cb94365e3bb8ad475ddfdc6be1 /common
parentae4b298bbb41a37a73b0b10eb021d9730bd8b839 (diff)
downloadscummvm-rg350-279a5b4f32ebd9ed9df4390995e4bfc4da38f1df.tar.gz
scummvm-rg350-279a5b4f32ebd9ed9df4390995e4bfc4da38f1df.tar.bz2
scummvm-rg350-279a5b4f32ebd9ed9df4390995e4bfc4da38f1df.zip
BACKENDS: Add OSystem::displayLogFile interface + OSX implementation
Diffstat (limited to 'common')
-rw-r--r--common/system.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/common/system.h b/common/system.h
index b584739b77..ad706b51fd 100644
--- a/common/system.h
+++ b/common/system.h
@@ -195,7 +195,13 @@ public:
* engine queries for to assign keys to actions ("Here's my default key
* map for these actions, what do you want them set to?").
*/
- kFeatureDisableKeyFiltering
+ kFeatureDisableKeyFiltering,
+
+ /**
+ * This feature indicates whether the displayLogFile() call
+ * is supported.
+ */
+ kFeatureDisplayLogFile
};
/**
@@ -1010,6 +1016,29 @@ public:
virtual void logMessage(LogMessageType::Type type, const char *message);
/**
+ * Open the log file in a way that allows the user to review it,
+ * and possibly email it (or parts of it) to the ScummVM team,
+ * e.g. as part of a bug report.
+ *
+ * On a desktop operating system, this would typically launch
+ * some kind of (external) text editor / viewer.
+ * On a phone, it might also cause a context switch to another
+ * application. Finally, on some ports, it might not be supported.
+ * at all, and so do nothing.
+ *
+ * The kFeatureDisplayLogFile feature flag can be used to
+ * test whether this call has been implemented by the active
+ * backend.
+ *
+ * @return true if all seems to have gone fine, false if an error occurred
+ *
+ * @note An error could mean that the log file did not exist,
+ * or the editor could not launch. However, a return value of true does
+ * not guarantee that the user actually will the log file.
+ */
+ virtual bool displayLogFile() { return false; }
+
+ /**
* Returns the locale of the system.
*
* This returns the currently set up locale of the system, on which