forked from Mirror/GodMode9
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;
|
version = tie.title_version & 0xFFFF;
|
||||||
} else if (filetype & GAME_CIA) {
|
} else if (filetype & GAME_CIA) {
|
||||||
CiaStub* cia = (CiaStub*) malloc(sizeof(CiaStub));
|
CiaStub* cia = (CiaStub*) malloc(sizeof(CiaStub));
|
||||||
if (cia && LoadCiaStub(cia, path) != 0)
|
if (cia && LoadCiaStub(cia, path) == 0)
|
||||||
version = getbe16(cia->tmd.title_version);
|
version = getbe16(cia->tmd.title_version);
|
||||||
if (cia) free(cia);
|
if (cia) free(cia);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user