diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-28 03:48:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 03:48:54 +0100 |
commit | d5e8c9d04f80aee80aa93f7963259c6fecacc660 (patch) | |
tree | 75fd375885ee8c55a1b7715f281c985996bf9370 /src/android/app/src/main/jni/native.h | |
parent | Merge pull request #12818 from K900/small-fixes (diff) | |
parent | android: Multi-program app switching (diff) | |
download | yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar.gz yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar.bz2 yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar.lz yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar.xz yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.tar.zst yuzu-d5e8c9d04f80aee80aa93f7963259c6fecacc660.zip |
Diffstat (limited to 'src/android/app/src/main/jni/native.h')
-rw-r--r-- | src/android/app/src/main/jni/native.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/android/app/src/main/jni/native.h b/src/android/app/src/main/jni/native.h index dadb138ad..bfe3fccca 100644 --- a/src/android/app/src/main/jni/native.h +++ b/src/android/app/src/main/jni/native.h @@ -45,7 +45,8 @@ public: const Core::PerfStatsResults& PerfStats(); void ConfigureFilesystemProvider(const std::string& filepath); void InitializeSystem(bool reload); - Core::SystemResultStatus InitializeEmulation(const std::string& filepath); + Core::SystemResultStatus InitializeEmulation(const std::string& filepath, + const std::size_t program_index = 0); bool IsHandheldOnly(); void SetDeviceType([[maybe_unused]] int index, int type); @@ -60,6 +61,7 @@ public: private: static void LoadDiskCacheProgress(VideoCore::LoadCallbackStage stage, int progress, int max); static void OnEmulationStopped(Core::SystemResultStatus result); + static void ChangeProgram(std::size_t program_index); private: // Window management @@ -84,4 +86,7 @@ private: // Synchronization std::condition_variable_any m_cv; mutable std::mutex m_mutex; + + // Program index for next boot + std::atomic<s32> m_next_program_index = -1; }; |