mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
IPC_HLE is actually IOS HLE. The actual IPC emulation is not in IPC_HLE, but in HW/WII_IPC.cpp. So calling IPC_HLE IOS is more accurate. (If IOS LLE gets ever implemented, it'll likely be at a lower level -- Starlet LLE.) This also totally gets rid of the IPC_HLE prefix in file names, and moves some source files to their own subdirectories to make the file hierarchy cleaner. We're going to get ~14 additional source files with the USB PR, and this is really needed to keep things from becoming a total pain.
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
// Copyright 2016 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "Core/IOS/DeviceStub.h"
|
|
#include "Common/Logging/Log.h"
|
|
|
|
namespace IOS
|
|
{
|
|
namespace HLE
|
|
{
|
|
CWII_IPC_HLE_Device_stub::CWII_IPC_HLE_Device_stub(u32 device_id, const std::string& device_name)
|
|
: IWII_IPC_HLE_Device(device_id, device_name)
|
|
{
|
|
}
|
|
|
|
IOSReturnCode CWII_IPC_HLE_Device_stub::Open(const IOSOpenRequest& request)
|
|
{
|
|
WARN_LOG(WII_IPC_HLE, "%s faking Open()", m_name.c_str());
|
|
m_is_active = true;
|
|
return IPC_SUCCESS;
|
|
}
|
|
|
|
void CWII_IPC_HLE_Device_stub::Close()
|
|
{
|
|
WARN_LOG(WII_IPC_HLE, "%s faking Close()", m_name.c_str());
|
|
m_is_active = false;
|
|
}
|
|
|
|
IPCCommandResult CWII_IPC_HLE_Device_stub::IOCtl(const IOSIOCtlRequest& request)
|
|
{
|
|
WARN_LOG(WII_IPC_HLE, "%s faking IOCtl()", m_name.c_str());
|
|
return GetDefaultReply(IPC_SUCCESS);
|
|
}
|
|
|
|
IPCCommandResult CWII_IPC_HLE_Device_stub::IOCtlV(const IOSIOCtlVRequest& request)
|
|
{
|
|
WARN_LOG(WII_IPC_HLE, "%s faking IOCtlV()", m_name.c_str());
|
|
return GetDefaultReply(IPC_SUCCESS);
|
|
}
|
|
} // namespace HLE
|
|
} // namespace IOS
|