-
Notifications
You must be signed in to change notification settings - Fork 16
/
pcejin.h
57 lines (45 loc) · 820 Bytes
/
pcejin.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
55
56
57
#include <string>
#include "utils\svnrev.h"
#include "main.h"
class Pcejin
{
public:
Pcejin() : started(false),
aspectRatio(true),
romLoaded(false),
frameAdvance(false),
width(384),
height(224),
versionName(std::string("VBjin-ovr v") + std::string(SVN_REV_STR)),
slow(false) {
}
bool aspectRatio;
bool started;
bool romLoaded;
bool maximized;
bool isLagFrame;
int lagFrameCounter;
char inputDisplayString[128];
int height;
int width;
int windowSize;
std::string versionName;
bool frameAdvance;
bool fastForward;
bool slow;
u16 pads[5];
virtual void pause() {
if(romLoaded) {
started ^=1;
if(started)
soundDriver->resume();
else
soundDriver->pause();
}
}
virtual void tempUnPause() {
if(started)
soundDriver->resume();
}
};
extern Pcejin pcejin;