-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhandlestuffnwaccess.h
54 lines (45 loc) · 1.33 KB
/
handlestuffnwaccess.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
53
54
#ifndef HANDLENWACCESS_H
#define HANDLENWACCESS_H
#include "handlestuff.h"
#include "emunwaccessclient.h"
#include <QTimer>
class HandleStuffNWAccess : public HandleStuff
{
public:
HandleStuffNWAccess();
// HandleStuff interface
public:
void setNWAClient(EmuNWAccessClient* client);
QByteArray getScreenshotData();
bool hasShortcutsEdit();
bool hasScreenshots();
void setShortcutSave(quint16 shortcut);
void setShortcutLoad(quint16 shortcut);
quint16 shortcutSave();
quint16 shortcutLoad();
bool hasMemoryWatch();
void startMemoryWatch();
void stopMemoryWatch();
void controllerLoadState();
void controllerSaveState();
protected:
bool saveState(bool trigger);
void loadState(QByteArray data);
bool saveState(QString path);
bool loadState(QString path);
bool needByteData();
bool hasPostSaveScreenshot();
bool doScreenshot();
private:
EmuNWAccessClient* emuclient;
bool load;
bool doingState;
bool memoryAccess;
bool controllerStateRequest;
QTimer memoryTimer;
QByteArray lastSaveData;
quint16 saveShortcut;
quint16 loadShortcut;
void onReplyRead();
};
#endif // HANDLENWACCESS_H