mirror of https://github.com/bsnes-emu/bsnes.git
Start to sketch out our methods
This commit is contained in:
parent
6fc6bf14a3
commit
aadd537699
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue