mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-13 21:50:09 +00:00
GameList: Fix possible bad optional unwrap in ApplyCustomAttributes()
This commit is contained in:
parent
6f3a6d7934
commit
f273dcff18
@ -732,7 +732,7 @@ void GameList::ApplyCustomAttributes(const std::string& path, Entry* entry,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
WARNING_LOG("Invalid language '{}' in custom attributes for '{}'", custom_region_str.value(), path);
|
WARNING_LOG("Invalid language '{}' in custom attributes for '{}'", custom_language_str.value(), path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1084,7 +1084,7 @@ void GameList::CreateDiscSetEntries(const std::vector<std::string>& excluded_pat
|
|||||||
|
|
||||||
// already have a disc set by this name?
|
// already have a disc set by this name?
|
||||||
const std::string& disc_set_name = entry.disc_set_name;
|
const std::string& disc_set_name = entry.disc_set_name;
|
||||||
if (GetEntryForPath(disc_set_name.c_str()))
|
if (GetEntryForPath(disc_set_name))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const GameDatabase::Entry* dbentry = GameDatabase::GetEntryForSerial(entry.serial);
|
const GameDatabase::Entry* dbentry = GameDatabase::GetEntryForSerial(entry.serial);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user