mirror of
https://github.com/Michael-Prince-Sharpe/bsnes-classic.git
synced 2025-04-02 10:21:42 -04:00
25 lines
385 B
C++
25 lines
385 B
C++
class State {
|
|
public:
|
|
unsigned active;
|
|
bool save(unsigned);
|
|
bool load(unsigned);
|
|
|
|
void frame();
|
|
void resetHistory();
|
|
bool rewind();
|
|
|
|
State();
|
|
~State();
|
|
|
|
private:
|
|
serializer *history;
|
|
unsigned historySize;
|
|
unsigned historyIndex;
|
|
unsigned historyCount;
|
|
unsigned frameCounter;
|
|
|
|
bool allowed() const;
|
|
string name(unsigned slot) const;
|
|
};
|
|
|
|
extern State state;
|