mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-02-17 10:00:53 -05:00
Pretty much all of the source files contain the following:
namespace IOS
{
namespace HLE
{
namespace <name>
{
// actual code here
} // namespace <name>
} // namespace HLE
} // namespace IOS
which is really verbose boilerplate, because most of the files inside
of Core/IOS are for IOS HLE.
This commit replaces that with a more concise `namespace IOS::HLE`
or `namespace IOS::HLE::(name)`.
25 lines
653 B
C++
25 lines
653 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::HLE::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 IOS::HLE::Device
|