Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11786 from AdmiralCurtiss/ios-dolphin-device
IOS: Only construct DolphinDevice on EmulationKernel IOS instances.
  • Loading branch information
leoetlino committed Apr 24, 2023
2 parents ffbbd72 + 4d49902 commit a08b5f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/Core/IOS/IOS.cpp
Expand Up @@ -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()
Expand All @@ -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))
Expand Down

0 comments on commit a08b5f7

Please sign in to comment.