diff options
| author | 2018-08-24 14:34:03 -0400 | |
|---|---|---|
| committer | 2018-08-24 14:34:03 -0400 | |
| commit | f09da5d1c97d83b7e0654785ae49179ca6cd82be (patch) | |
| tree | e84e447931d858c0dbb367eb91a387d8f6e36e4a /src/core | |
| parent | Merge pull request #1164 from tech4me/decode_iadd3 (diff) | |
| parent | qt: Add filename and title id to window title while running (diff) | |
| download | yuzu-f09da5d1c97d83b7e0654785ae49179ca6cd82be.tar.gz yuzu-f09da5d1c97d83b7e0654785ae49179ca6cd82be.tar.xz yuzu-f09da5d1c97d83b7e0654785ae49179ca6cd82be.zip | |
Merge pull request #1065 from DarkLordZach/window-title
qt: Add filename and title id to window title while running
Diffstat (limited to 'src/core')
| -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: | |||
| 187 | return current_process; | 187 | return current_process; |
| 188 | } | 188 | } |
| 189 | 189 | ||
| 190 | /// Gets the name of the current game | ||
| 191 | Loader::ResultStatus GetGameName(std::string& out) const { | ||
| 192 | if (app_loader == nullptr) | ||
| 193 | return Loader::ResultStatus::ErrorNotInitialized; | ||
| 194 | return app_loader->ReadTitle(out); | ||
| 195 | } | ||
| 196 | |||
| 190 | PerfStats perf_stats; | 197 | PerfStats perf_stats; |
| 191 | FrameLimiter frame_limiter; | 198 | FrameLimiter frame_limiter; |
| 192 | 199 | ||