summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorZach Hilman <DarkLordZach@users.noreply.github.com>2018-08-24 14:34:03 -0400
committerGitHub <noreply@github.com>2018-08-24 14:34:03 -0400
commitf09da5d1c97d83b7e0654785ae49179ca6cd82be (patch)
treee84e447931d858c0dbb367eb91a387d8f6e36e4a /src/core/core.h
parent018c25e123c39a6e598d1d1852f0d0e9723edadc (diff)
parent67fa51ea2f54355bcf49bed36658151e6153bb44 (diff)
Merge pull request #1065 from DarkLordZach/window-title
qt: Add filename and title id to window title while running
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 790e23cae..7188dabdc 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -187,6 +187,13 @@ public:
return current_process;
}
+ /// Gets the name of the current game
+ Loader::ResultStatus GetGameName(std::string& out) const {
+ if (app_loader == nullptr)
+ return Loader::ResultStatus::ErrorNotInitialized;
+ return app_loader->ReadTitle(out);
+ }
+
PerfStats perf_stats;
FrameLimiter frame_limiter;