Start to sketch out our methods

This commit is contained in:
Anaïs Betts 2022-01-09 17:22:46 +01:00
parent 6fc6bf14a3
commit aadd537699
1 changed files with 17 additions and 0 deletions

View File

@ -48,6 +48,11 @@ struct Program : Lock, Emulator::Platform {
auto cheatPath() -> string;
auto statePath() -> string;
auto screenshotPath() -> string;
// rpc
auto startRpcListener() -> void;
auto stopRpcListener() -> void;
auto processRpcCommands() -> void;
//states.cpp
struct State {
@ -206,6 +211,18 @@ public:
};};
uint mute = 0;
// rpc.cpp
struct RpcCommandType { enum : uint {
SaveStateToFile = 1 << 1
}; };
struct RpcCommand {
RpcCommandType type;
string arg;
};
vector<RpcCommand> pendingRpcCommands;
bool fastForwarding = false;
bool rewinding = false;
};