Fix CIA good renaming (add version)

This commit is contained in:
d0k3 2021-04-29 20:50:13 +02:00
parent 8680358aa1
commit 236d2dc09c

View File

@ -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);
} }