-
Notifications
You must be signed in to change notification settings - Fork 2
/
pcejin.h
58 lines (48 loc) · 951 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
58
#include <string>
#include "utils\svnrev.h"
#include "main.h"
class Pcejin
{
public:
Pcejin() : started(false),
aspectRatio(true),
romLoaded(false),
frameAdvance(false),
AssociateSSMovie(true),
width(256),
height(232),
versionName(std::string("PCEjin svn") + std::string(SVN_REV_STR)),
slow(false) {
}
bool AssociateSSMovie;
bool aspectRatio;
bool started;
bool romLoaded;
bool maximized;
char ShortMovieName[256];
bool isLagFrame;
int lagFrameCounter;
char inputDisplayString[128];
int height;
int width;
int windowSize;
std::string versionName;
bool frameAdvance;
bool fastForward;
bool slow;
u8 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;