IOS: Only construct DolphinDevice on EmulationKernel IOS instances.

Doesn't make much sense to have this active without a game.
This commit is contained in:
Admiral H. Curtiss 2023-04-23 20:02:11 +02:00
parent ffbbd72741
commit 4d49902b34
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 3 additions and 1 deletions

View File

@ -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))