Skip to content

Commit

Permalink
Fix bug in module NID detection
Browse files Browse the repository at this point in the history
libshacccg modules in the wild may have one of two NIDs. The difference is due to certain methods of decryption causing the module NID to be regenerated.
  • Loading branch information
bythos14 committed Jun 17, 2022
1 parent 16520bc commit 1021923
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shacccg_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ int sceShaccCgExtEnableExtensions()
goto fail;
}

if (taiModuleInfo.module_nid != 0xEE15880D)
if (taiModuleInfo.module_nid != 0xEE15880D && taiModuleInfo.module_nid != 0x6C3C7547)
{
LOG(ERROR, "SceShaccCg module NID is not as expected");
goto fail;
Expand Down Expand Up @@ -160,6 +160,7 @@ int sceShaccCgExtEnableExtensions()

return 0;
fail:
LOG(ERROR, "Failed to apply patches");
sceShaccCgExtDisableExtensions();
return -1;
}
Expand Down

0 comments on commit 1021923

Please sign in to comment.