Add /dev/dolphin for homebrew to get information about Dolphin

Adds a /dev/dolphin interface that can be used by
Dolphin-aware software to get information like the
real system time and the Dolphin version.
This commit is contained in:
Florian Bach
2019-11-01 23:30:30 +01:00
parent a7d4be79ae
commit 2d55a6b0b7
8 changed files with 189 additions and 2 deletions

View File

@ -30,6 +30,7 @@
#include "Core/IOS/DI/DI.h"
#include "Core/IOS/Device.h"
#include "Core/IOS/DeviceStub.h"
#include "Core/IOS/DolphinDevice.h"
#include "Core/IOS/ES/ES.h"
#include "Core/IOS/FS/FileSystem.h"
#include "Core/IOS/FS/FileSystemProxy.h"
@ -372,6 +373,7 @@ void Kernel::AddCoreDevices()
std::lock_guard<std::mutex> lock(m_device_map_mutex);
AddDevice(std::make_unique<Device::FS>(*this, "/dev/fs"));
AddDevice(std::make_unique<Device::ES>(*this, "/dev/es"));
AddDevice(std::make_unique<Device::DolphinDevice>(*this, "/dev/dolphin"));
}
void Kernel::AddStaticDevices()