From 4d49902b341a37393d39f7344773ece2b4ad0027 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 23 Apr 2023 20:02:11 +0200 Subject: [PATCH] IOS: Only construct DolphinDevice on EmulationKernel IOS instances. Doesn't make much sense to have this active without a game. --- Source/Core/Core/IOS/IOS.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(*this, "/dev/fs")); AddDevice(std::make_unique(*this, "/dev/es")); - AddDevice(std::make_unique(*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(*this, "/dev/dolphin")); + // OH1 (Bluetooth) AddDevice(std::make_unique(*this, "/dev/usb/oh1")); if (!Config::Get(Config::MAIN_BLUETOOTH_PASSTHROUGH_ENABLED))