mirror of
https://github.com/Retropex/dolphin.git
synced 2025-05-28 21:12:39 +02:00

This commit changes devices to always return IPCCommandResult rather than just a return code for Open() and Close() in order to be able to better emulate reply timing. In hindsight, I should have considered we would want to emulate timing when I cleaned up the device interface, but alas. This rectifies that mistake.
31 lines
705 B
C++
31 lines
705 B
C++
// Copyright 2016 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
#include "Core/IOS/Device.h"
|
|
#include "Core/IOS/IOS.h"
|
|
|
|
namespace IOS
|
|
{
|
|
namespace HLE
|
|
{
|
|
namespace Device
|
|
{
|
|
class Stub final : public Device
|
|
{
|
|
public:
|
|
// Inherit the constructor from the Device class, since we don't need to do anything special.
|
|
using Device::Device;
|
|
IPCCommandResult Open(const OpenRequest& request) override;
|
|
IPCCommandResult IOCtl(const IOCtlRequest& request) override;
|
|
IPCCommandResult IOCtlV(const IOCtlVRequest& request) override;
|
|
};
|
|
} // namespace Device
|
|
} // namespace HLE
|
|
} // namespace IOS
|