summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorZach Hilman <DarkLordZach@users.noreply.github.com>2018-08-24 20:34:03 +0200
committerGitHub <noreply@github.com>2018-08-24 20:34:03 +0200
commitf09da5d1c97d83b7e0654785ae49179ca6cd82be (patch)
treee84e447931d858c0dbb367eb91a387d8f6e36e4a /src/core
parentMerge pull request #1164 from tech4me/decode_iadd3 (diff)
parentqt: Add filename and title id to window title while running (diff)
downloadyuzu-f09da5d1c97d83b7e0654785ae49179ca6cd82be.tar
yuzu-f09da5d1c97d83b7e0654785ae49179ca6cd82be.tar.gz
yuzu-f09da5d1c97d83b7e0654785ae49179ca6cd82be.tar.bz2
yuzu-f09da5d1c97d83b7e0654785ae49179ca6cd82be.tar.lz
yuzu-f09da5d1c97d83b7e0654785ae49179ca6cd82be.tar.xz
yuzu-f09da5d1c97d83b7e0654785ae49179ca6cd82be.tar.zst
yuzu-f09da5d1c97d83b7e0654785ae49179ca6cd82be.zip
Diffstat (limited to 'src/core')
-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;