Config: Move recent ISOs access to accessors.

This commit is contained in:
Unknown W. Brackets
2022-07-11 20:44:13 -07:00
parent b529313db2
commit aad5082d55
7 changed files with 29 additions and 16 deletions
+1 -1
View File
@@ -375,7 +375,7 @@ bool GameManager::DetectTexturePackDest(struct zip *z, int iniIndex, Path &dest)
std::string gameID = games.begin()->first;
if (games.size() > 1) {
// Check for any supported game on their recent list and use that instead.
for (const std::string &path : g_Config.recentIsos) {
for (const std::string &path : g_Config.RecentIsos()) {
std::string recentID = GetGameID(Path(path));
if (games.find(recentID) != games.end()) {
gameID = recentID;