mirror of https://github.com/stella-emu/stella.git
added removing of deleted ROMs from virtual lists
This commit is contained in:
parent
de819b123d
commit
f6a2f21792
|
@ -43,7 +43,9 @@ void FavoritesManager::load()
|
|||
for(const auto& u : jUser)
|
||||
{
|
||||
const string& path = u.get<string>();
|
||||
addUser(path);
|
||||
FilesystemNode node(path);
|
||||
if(node.exists())
|
||||
addUser(path);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -58,7 +60,9 @@ void FavoritesManager::load()
|
|||
for(const auto& r : jRecent)
|
||||
{
|
||||
const string& path = r.get<string>();
|
||||
addRecent(path);
|
||||
FilesystemNode node(path);
|
||||
if(node.exists())
|
||||
addRecent(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +77,9 @@ void FavoritesManager::load()
|
|||
{
|
||||
const string& path = p[0].get<string>();
|
||||
const uInt32 count = p[1].get<uInt32>();
|
||||
myPopularMap.emplace(path, count);
|
||||
FilesystemNode node(path);
|
||||
if(node.exists())
|
||||
myPopularMap.emplace(path, count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue