MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ensureLoaded

Method ensureLoaded

pcsx2/GameDatabase.cpp:1064–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062}
1063
1064void GameDatabase::ensureLoaded()
1065{
1066 std::call_once(s_load_once_flag, []() {
1067 Common::Timer timer;
1068 Console.WriteLn(fmt::format("GameDB: Has not been initialized yet, initializing..."));
1069 initDatabase();
1070 Console.WriteLn("GameDB: %zu games on record (loaded in %.2fms)", s_game_db.size(), timer.GetTimeMilliseconds());
1071 });
1072}
1073
1074const GameDatabaseSchema::GameEntry* GameDatabase::findGame(const std::string_view serial)
1075{

Callers

nothing calls this directly

Calls 4

GetTimeMillisecondsMethod · 0.80
formatFunction · 0.50
WriteLnMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected