GameList: Fix incorrect loading of cache

This commit is contained in:
Connor McLaughlin 2020-01-22 17:56:58 +10:00
parent a832138191
commit a5135ceeb0

View file

@ -428,7 +428,7 @@ bool GameList::LoadEntriesFromCache(ByteStream* stream)
} }
GameListEntry ge; GameListEntry ge;
ge.path = std::move(path); ge.path = path;
ge.code = std::move(code); ge.code = std::move(code);
ge.title = std::move(title); ge.title = std::move(title);
ge.total_size = total_size; ge.total_size = total_size;
@ -440,7 +440,7 @@ bool GameList::LoadEntriesFromCache(ByteStream* stream)
if (iter != m_cache_map.end()) if (iter != m_cache_map.end())
iter->second = std::move(ge); iter->second = std::move(ge);
else else
m_cache_map.emplace(path, std::move(ge)); m_cache_map.emplace(std::move(path), std::move(ge));
} }
return true; return true;