mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Fix CIA good renaming (add version)
This commit is contained in:
parent
8680358aa1
commit
236d2dc09c
@ -2767,7 +2767,7 @@ u32 GetGameFileTitleVersion(const char* path) {
|
||||
version = tie.title_version & 0xFFFF;
|
||||
} else if (filetype & GAME_CIA) {
|
||||
CiaStub* cia = (CiaStub*) malloc(sizeof(CiaStub));
|
||||
if (cia && LoadCiaStub(cia, path) != 0)
|
||||
if (cia && LoadCiaStub(cia, path) == 0)
|
||||
version = getbe16(cia->tmd.title_version);
|
||||
if (cia) free(cia);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user