aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/EmuThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl/EmuThread.cpp')
-rw-r--r--src/frontend/qt_sdl/EmuThread.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/frontend/qt_sdl/EmuThread.cpp b/src/frontend/qt_sdl/EmuThread.cpp
index 4a75387..01431a1 100644
--- a/src/frontend/qt_sdl/EmuThread.cpp
+++ b/src/frontend/qt_sdl/EmuThread.cpp
@@ -196,12 +196,11 @@ bool EmuThread::UpdateConsole(UpdateConsoleNDSArgs&& ndsargs, UpdateConsoleGBAAr
ndsargs = {};
}
- if (nextndscart && nextndscart->Type() == NDSCart::Homebrew)
+ if (auto* cartsd = dynamic_cast<NDSCart::CartSD*>(nextndscart.get()))
{
- // Load DLDISDCard will return nullopt if the SD card is disabled;
+ // LoadDLDISDCard will return nullopt if the SD card is disabled;
// SetSDCard will accept nullopt, which means no SD card
- auto& homebrew = static_cast<NDSCart::CartHomebrew&>(*nextndscart);
- homebrew.SetSDCard(ROMManager::LoadDLDISDCard());
+ cartsd->SetSDCard(ROMManager::GetDLDISDCardArgs());
}
std::unique_ptr<GBACart::CartCommon> nextgbacart;