summaryrefslogtreecommitdiffstats
path: root/src/android/app
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-19 16:50:45 +0100
committerGitHub <noreply@github.com>2024-02-19 16:50:45 +0100
commitc9ef2e26ca82cacc44998727d704f4b77ee88591 (patch)
tree43a5699123e4930560fc5016faac7efb15b63f4e /src/android/app
parentMerge pull request #13006 from liamwhite/a-hat-in-vram (diff)
parentscope_exit: Make constexpr (diff)
downloadyuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar.gz
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar.bz2
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar.lz
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar.xz
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.tar.zst
yuzu-c9ef2e26ca82cacc44998727d704f4b77ee88591.zip
Diffstat (limited to 'src/android/app')
-rw-r--r--src/android/app/src/main/jni/native.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp
index 50cef5d2a..4ea82e217 100644
--- a/src/android/app/src/main/jni/native.cpp
+++ b/src/android/app/src/main/jni/native.cpp
@@ -404,7 +404,9 @@ static Core::SystemResultStatus RunEmulation(const std::string& filepath,
const size_t program_index,
const bool frontend_initiated) {
MicroProfileOnThreadCreate("EmuThread");
- SCOPE_EXIT({ MicroProfileShutdown(); });
+ SCOPE_EXIT {
+ MicroProfileShutdown();
+ };
LOG_INFO(Frontend, "starting");
@@ -413,7 +415,9 @@ static Core::SystemResultStatus RunEmulation(const std::string& filepath,
return Core::SystemResultStatus::ErrorLoader;
}
- SCOPE_EXIT({ EmulationSession::GetInstance().ShutdownEmulation(); });
+ SCOPE_EXIT {
+ EmulationSession::GetInstance().ShutdownEmulation();
+ };
jconst result = EmulationSession::GetInstance().InitializeEmulation(filepath, program_index,
frontend_initiated);