summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-04-23 20:02:11 +0200
committerAdmiral H. Curtiss <pikachu025@gmail.com>2023-04-23 20:09:32 +0200
commit4d49902b341a37393d39f7344773ece2b4ad0027 (patch)
tree7002e4fcd33a359f817ea966a2ac33af4ecf2814 /Source
parentffbbd72741aa74d8bc602635ac9fdf9f9d0bb1bd (diff)
IOS: Only construct DolphinDevice on EmulationKernel IOS instances.
Doesn't make much sense to have this active without a game.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/IOS/IOS.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/Core/IOS/IOS.cpp b/Source/Core/Core/IOS/IOS.cpp
index bc09da7837..3e404a76cc 100644
--- a/Source/Core/Core/IOS/IOS.cpp
+++ b/Source/Core/Core/IOS/IOS.cpp
@@ -544,7 +544,6 @@ void Kernel::AddCoreDevices()
std::lock_guard lock(m_device_map_mutex);
AddDevice(std::make_unique<FSDevice>(*this, "/dev/fs"));
AddDevice(std::make_unique<ESDevice>(*this, "/dev/es"));
- AddDevice(std::make_unique<DolphinDevice>(*this, "/dev/dolphin"));
}
void Kernel::AddStaticDevices()
@@ -553,6 +552,9 @@ void Kernel::AddStaticDevices()
const Feature features = GetFeatures(GetVersion());
+ // Dolphin-specific device for letting homebrew access and alter emulator state.
+ AddDevice(std::make_unique<DolphinDevice>(*this, "/dev/dolphin"));
+
// OH1 (Bluetooth)
AddDevice(std::make_unique<DeviceStub>(*this, "/dev/usb/oh1"));
if (!Config::Get(Config::MAIN_BLUETOOTH_PASSTHROUGH_ENABLED))