mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-26 19:25:42 -04:00
Data: Remove JSON GameDB
This commit is contained in:
parent
d7a1c447c6
commit
8ffc50a2a5
507635
data/resources/gamedb.json
507635
data/resources/gamedb.json
File diff suppressed because it is too large
Load Diff
@ -202,7 +202,7 @@ void GameDatabase::EnsureLoaded()
|
|||||||
SaveToCache();
|
SaveToCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
Log_InfoFmt("Database load took {:.0f}ms", timer.GetTimeMilliseconds());
|
Log_InfoFmt("Database load of {} entries took {:.0f}ms.", s_entries.size(), timer.GetTimeMilliseconds());
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameDatabase::Unload()
|
void GameDatabase::Unload()
|
||||||
@ -841,8 +841,6 @@ void GameDatabase::SetRymlCallbacks()
|
|||||||
|
|
||||||
bool GameDatabase::LoadGameDBYaml()
|
bool GameDatabase::LoadGameDBYaml()
|
||||||
{
|
{
|
||||||
Common::Timer timer;
|
|
||||||
|
|
||||||
const std::optional<std::string> gamedb_data = Host::ReadResourceFileToString(GAMEDB_YAML_FILENAME, false);
|
const std::optional<std::string> gamedb_data = Host::ReadResourceFileToString(GAMEDB_YAML_FILENAME, false);
|
||||||
if (!gamedb_data.has_value())
|
if (!gamedb_data.has_value())
|
||||||
{
|
{
|
||||||
@ -871,9 +869,6 @@ bool GameDatabase::LoadGameDBYaml()
|
|||||||
}
|
}
|
||||||
|
|
||||||
ryml::reset_callbacks();
|
ryml::reset_callbacks();
|
||||||
|
|
||||||
Log_InfoFmt("Loaded {} entries and {} codes from database in {:.0f}ms.", s_entries.size(), s_code_lookup.size(),
|
|
||||||
timer.GetTimeMilliseconds());
|
|
||||||
return !s_entries.empty();
|
return !s_entries.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user