mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-07 12:05:52 +00:00
GameList: Fix crash loading custom language options
This commit is contained in:
parent
6be242449b
commit
3ed6cc2ba8
@ -634,7 +634,7 @@ void GameList::ApplyCustomAttributes(const std::string& path, Entry* entry,
|
||||
if (custom_language_str.has_value())
|
||||
{
|
||||
const std::optional<GameDatabase::Language> custom_region =
|
||||
GameDatabase::ParseLanguageName(custom_region_str.value());
|
||||
GameDatabase::ParseLanguageName(custom_language_str.value());
|
||||
if (custom_region.has_value())
|
||||
{
|
||||
entry->custom_language = custom_region.value();
|
||||
|
Loading…
x
Reference in New Issue
Block a user