Only update the name of a title if it's empty

This commit is contained in:
Maschell 2020-02-20 15:16:45 +01:00
parent 57a1a34bea
commit 6e041490d6

View File

@ -138,14 +138,16 @@ void GameList::updateTitleInfo() {
bool hasChanged = false;
ACPMetaXml* meta = (ACPMetaXml*)calloc(1, 0x4000); //TODO fix wut
if(meta) {
auto acp = ACPGetTitleMetaXml(newHeader->titleId, meta);
if(acp >= 0) {
newHeader->name = meta->shortname_en;
hasChanged = true;
if(newHeader->name.empty()) {
ACPMetaXml* meta = (ACPMetaXml*)calloc(1, 0x4000); //TODO fix wut
if(meta) {
auto acp = ACPGetTitleMetaXml(newHeader->titleId, meta);
if(acp >= 0) {
newHeader->name = meta->shortname_en;
hasChanged = true;
}
free(meta);
}
free(meta);
}
if(newHeader->imageData == NULL) {