System: Support loading expansion ROMs
This commit is contained in:
parent
5d1c12c9ad
commit
20f14688ca
8 changed files with 138 additions and 10 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue