mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 14:58:22 -04:00
boot: refactor for R_TRY
This commit is contained in:
parent
491383c637
commit
7b6050a0cb
16 changed files with 223 additions and 623 deletions
|
@ -852,7 +852,7 @@ Result DmntCheatManager::ForceOpenCheatProcess() {
|
|||
|
||||
/* Get the current application process ID. */
|
||||
R_TRY(pmdmntGetApplicationPid(&g_cheat_process_metadata.process_id));
|
||||
auto proc_guard = SCOPE_EXIT {
|
||||
auto proc_guard = SCOPE_GUARD {
|
||||
g_cheat_process_metadata.process_id = 0;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue