-
Notifications
You must be signed in to change notification settings - Fork 129
Expand file tree
/
Copy pathiop_subsystem.h
More file actions
40 lines (31 loc) · 1.08 KB
/
Copy pathiop_subsystem.h
File metadata and controls
40 lines (31 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include "ps2x/iop/iop_host.h"
#include "ps2x/iop/iop_types.h"
#include <filesystem>
#include <memory>
#include <string>
#include <vector>
namespace ps2x::iop
{
class IopSubsystem
{
public:
explicit IopSubsystem(IopHost &host);
~IopSubsystem();
IopSubsystem(const IopSubsystem &) = delete;
IopSubsystem &operator=(const IopSubsystem &) = delete;
IopSubsystem(IopSubsystem &&) noexcept;
IopSubsystem &operator=(IopSubsystem &&) noexcept;
void setPluginSearchPaths(std::vector<std::filesystem::path> paths);
bool loadPlugins(std::string *error = nullptr);
bool configure(const GameIdentity &identity, std::string *error = nullptr);
void reset();
[[nodiscard]] RpcAbi selectRpcAbi(const RpcAbiRequest &request) const;
[[nodiscard]] RpcResult handleRpc(const RpcRequest &request);
void onSifTransfer(const SifTransfer &transfer);
[[nodiscard]] DebugSnapshot debugSnapshot() const;
private:
class Impl;
std::unique_ptr<Impl> m_impl;
};
}