mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-26 01:31:53 +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))
|
||||
continue;
|
||||
if(fs::is_empty(it.path()))
|
||||
continue;
|
||||
std::string dirName = it.path().filename().string();
|
||||
uint32 persistentId = ConvertString<uint32>(dirName, 16);
|
||||
if (persistentId != 0)
|
||||
entry.persistent_ids.emplace_back(persistentId);
|
||||
if(!std::regex_match(dirName, std::regex("[0-9a-fA-F]{8}")))
|
||||
continue;
|
||||
entry.persistent_ids.emplace_back(ConvertString<uint32>(dirName, 16));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user