Emulator housekeeping

This commit is contained in:
scawful
2023-11-25 22:44:27 -05:00
parent bceaf1409b
commit c462d749e2
2 changed files with 25 additions and 0 deletions

View File

@@ -131,11 +131,13 @@ using ImGui::Text;
void Emulator::Run() {
if (!snes_.running() && loading_) {
// Setup and initialize memory
if (loading_ && !memory_setup_) {
snes_.SetupMemory(*rom());
memory_setup_ = true;
}
// Run the emulation
if (rom()->isLoaded() && power_) {
snes_.Init(*rom());
running_ = true;