diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-08-23 20:12:56 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-08-23 20:12:56 +0200 |
commit | 67fa51ea2f54355bcf49bed36658151e6153bb44 (patch) | |
tree | e066bd93a6d72de7011cabcd096db6ae8bfb8873 /src/core | |
parent | Merge pull request #1160 from bunnei/surface-reserve (diff) | |
download | yuzu-67fa51ea2f54355bcf49bed36658151e6153bb44.tar yuzu-67fa51ea2f54355bcf49bed36658151e6153bb44.tar.gz yuzu-67fa51ea2f54355bcf49bed36658151e6153bb44.tar.bz2 yuzu-67fa51ea2f54355bcf49bed36658151e6153bb44.tar.lz yuzu-67fa51ea2f54355bcf49bed36658151e6153bb44.tar.xz yuzu-67fa51ea2f54355bcf49bed36658151e6153bb44.tar.zst yuzu-67fa51ea2f54355bcf49bed36658151e6153bb44.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core.h | 7 |
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; |