Skip to content

Commit

Permalink
Don't need to backup SYSCONF if Prepare Launch fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew1Hawes committed Aug 23, 2024
1 parent 09fe101 commit 4f0e324
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,9 +499,10 @@ DECL_FUNCTION(int32_t, ACPGetLaunchMetaXml, ACPMetaXml *metaXml)
DECL_FUNCTION(int32_t, CMPTExPrepareLaunch, uint32_t unk1, void *unk2, uint32_t unk3)
{
setResolution(gSetResolution);
if (gPreserveSysconf)
int32_t result = real_CMPTExPrepareLaunch(unk1, unk2, unk3);
if (gPreserveSysconf && result == 0)
backupSysconf();
return real_CMPTExPrepareLaunch(unk1, unk2, unk3);
return result;
}

DECL_FUNCTION(int32_t, CMPTLaunchMenu, void *dataBuffer, uint32_t bufferSize)
Expand Down

0 comments on commit 4f0e324

Please sign in to comment.