boot: refactor for R_TRY

This commit is contained in:
Michael Scire 2019-06-20 00:57:17 -07:00
parent 491383c637
commit 7b6050a0cb
16 changed files with 223 additions and 623 deletions

View file

@ -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;
};