System: Support loading expansion ROMs

This commit is contained in:
Connor McLaughlin 2019-09-23 01:28:00 +10:00
commit 20f14688ca
8 changed files with 138 additions and 10 deletions

View file

@ -8,7 +8,7 @@ HostInterface::HostInterface() = default;
HostInterface::~HostInterface() = default;
bool HostInterface::InitializeSystem(const char* filename, const char* save_state_filename)
bool HostInterface::InitializeSystem(const char* filename, const char* exp1_filename, const char* save_state_filename)
{
m_system = std::make_unique<System>(this);
if (!m_system->Initialize())
@ -42,6 +42,9 @@ bool HostInterface::InitializeSystem(const char* filename, const char* save_stat
}
}
if (exp1_filename)
m_system->SetExpansionROM(exp1_filename);
if (save_state_filename)
LoadState(save_state_filename);