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

Function ROM_LoadFile

Source/Core/ROM.cpp:461–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461bool ROM_LoadFile()
462{
463 RomID rom_id;
464 u32 rom_size;
465 ECicType boot_type;
466
467 if (ROM_GetRomDetailsByFilename(g_ROM.mFileName, &rom_id, &rom_size, &boot_type ))
468 {
469 RomSettings settings;
470 SRomPreferences preferences;
471
472 if (!CRomSettingsDB::Get()->GetSettings( rom_id, &settings ))
473 {
474 settings.Reset();
475 }
476 if (!CPreferences::Get()->GetRomPreferences( rom_id, &preferences ))
477 {
478 preferences.Reset();
479 }
480
481 return ROM_LoadFile( rom_id, settings, preferences );
482 }
483
484 return false;
485}
486
487void ROM_UnloadFile()
488{

Callers

nothing calls this directly

Calls 12

ROM_GetTvTypeFromIDFunction · 0.85
SpecificGameHacksFunction · 0.85
DumpROMInfoFunction · 0.85
CheatCodes_ReadFunction · 0.85
ROM_GetSaveTypeNameFunction · 0.85
GetSettingsMethod · 0.80
GetRomPreferencesMethod · 0.80
RomIDClass · 0.70
ResetMethod · 0.45
ApplyMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected