mirror of
https://github.com/wiiu-env/launchiine.git
synced 2024-11-22 01:39:18 +01:00
Only update the name of a title if it's empty
This commit is contained in:
parent
57a1a34bea
commit
6e041490d6
@ -138,14 +138,16 @@ void GameList::updateTitleInfo() {
|
|||||||
|
|
||||||
bool hasChanged = false;
|
bool hasChanged = false;
|
||||||
|
|
||||||
ACPMetaXml* meta = (ACPMetaXml*)calloc(1, 0x4000); //TODO fix wut
|
if(newHeader->name.empty()) {
|
||||||
if(meta) {
|
ACPMetaXml* meta = (ACPMetaXml*)calloc(1, 0x4000); //TODO fix wut
|
||||||
auto acp = ACPGetTitleMetaXml(newHeader->titleId, meta);
|
if(meta) {
|
||||||
if(acp >= 0) {
|
auto acp = ACPGetTitleMetaXml(newHeader->titleId, meta);
|
||||||
newHeader->name = meta->shortname_en;
|
if(acp >= 0) {
|
||||||
hasChanged = true;
|
newHeader->name = meta->shortname_en;
|
||||||
|
hasChanged = true;
|
||||||
|
}
|
||||||
|
free(meta);
|
||||||
}
|
}
|
||||||
free(meta);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(newHeader->imageData == NULL) {
|
if(newHeader->imageData == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user