Skip to content

Commit

Permalink
Merge pull request #56 from DimitriPilot3/fix-account-settings-patch
Browse files Browse the repository at this point in the history
fix(account_settings): Avoid mixing up FSReadFile / FSCloseFile patches
  • Loading branch information
ashquarky authored Dec 15, 2024
2 parents ebecf95 + 6c78a95 commit 23728c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patches/account_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ bool patchAccountSettings() {

add_patch(REPLACE_FUNCTION_FOR_PROCESS(FSOpenFile_accSettings, LIBRARY_COREINIT, FSOpenFile, FP_TARGET_PROCESS_GAME), "FSOpenFile_accSettings");
add_patch(REPLACE_FUNCTION_FOR_PROCESS(FSReadFile_accSettings, LIBRARY_COREINIT, FSReadFile, FP_TARGET_PROCESS_GAME), "FSReadFile_accSettings");
add_patch(REPLACE_FUNCTION_FOR_PROCESS(FSCloseFile_accSettings, LIBRARY_COREINIT, FSReadFile, FP_TARGET_PROCESS_GAME), "FSCloseFile_accSettings");
add_patch(REPLACE_FUNCTION_FOR_PROCESS(FSCloseFile_accSettings, LIBRARY_COREINIT, FSCloseFile, FP_TARGET_PROCESS_GAME), "FSCloseFile_accSettings");

return true;
}
Expand Down

0 comments on commit 23728c4

Please sign in to comment.