MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Create

Method Create

Source/Interface/RomDB.cpp:170–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168};
169
170template<> bool CSingleton< CRomDB >::Create()
171{
172 #ifdef DAEDALUS_ENABLE_ASSERTS
173 DAEDALUS_ASSERT_Q(mpInstance == NULL);
174#endif
175 mpInstance = new IRomDB();
176
177 IO::Filename romdb_filename;
178 IO::Path::Combine( romdb_filename, gDaedalusExePath, "rom.db" );
179 /*ret = */mpInstance->OpenDB( romdb_filename );
180 // Ignore failure - this file might not exist on first run.
181
182 return true;
183}
184
185IRomDB::IRomDB()
186: mDirty( false )

Callers

nothing calls this directly

Calls 2

OpenDBMethod · 0.80
CombineFunction · 0.50

Tested by

no test coverage detected