mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-26 02:54:17 +01:00
TitleMgr: Fix "c" showing up in account list for saves (#590)
This commit is contained in:
parent
058d11b49b
commit
0c6f18ab97
@ -417,10 +417,12 @@ static void PopulateSavePersistentIds(wxTitleManagerList::TitleEntry& entry)
|
|||||||
{
|
{
|
||||||
if(!it.is_directory(ec))
|
if(!it.is_directory(ec))
|
||||||
continue;
|
continue;
|
||||||
|
if(fs::is_empty(it.path()))
|
||||||
|
continue;
|
||||||
std::string dirName = it.path().filename().string();
|
std::string dirName = it.path().filename().string();
|
||||||
uint32 persistentId = ConvertString<uint32>(dirName, 16);
|
if(!std::regex_match(dirName, std::regex("[0-9a-fA-F]{8}")))
|
||||||
if (persistentId != 0)
|
continue;
|
||||||
entry.persistent_ids.emplace_back(persistentId);
|
entry.persistent_ids.emplace_back(ConvertString<uint32>(dirName, 16));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user