-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhandlestuffusb2snes.h
52 lines (44 loc) · 1.41 KB
/
handlestuffusb2snes.h
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
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef HANDLESTUFFUSB2SNES_H
#define HANDLESTUFFUSB2SNES_H
#include "handlestuff.h"
#include "usb2snes.h"
class HandleStuffUsb2snes : public HandleStuff
{
public:
HandleStuffUsb2snes();
void setUsb2snes(USB2snes* usb);
quint16 shortcutSave();
quint16 shortcutLoad();
QByteArray getScreenshotData();
void setShortcutLoad(quint16 shortcut);
void setShortcutSave(quint16 shortcut);
bool hasScreenshots();
bool hasShortcutsEdit();
bool hasMemoryWatch();
void startMemoryWatch();
void stopMemoryWatch();
void controllerSaveState();
void controllerLoadState();
protected:
bool saveState(bool trigger);
void loadState(QByteArray data);
bool needByteData();
bool saveState(QString path);
bool loadState(QString path);
bool hasPostSaveScreenshot();
bool doScreenshot();
private:
USB2snes* usb2snes;
void checkForSafeState();
bool doingMemoryWatchCheck;
bool doingSaveState;
bool saveStateTrigger;
bool doingLoadState;
QTimer memoryWatchTimer;
QTimer safeStateTimer;
QByteArray loadStateData;
quint32 savestateInterfaceAddress;
quint32 savestateDataAddress;
void onGetAddressDataReceived();
};
#endif // HANDLESTUFFUSB2SNES_H