forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CD.h
49 lines (38 loc) · 711 Bytes
/
CD.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
#pragma once
#include <YRPPCore.h>
class CDDriveManagerClass
{
public:
//Static
static CDDriveManagerClass* Global()
{ return *((CDDriveManagerClass**)0x89E414); }
protected:
//CTOR
CDDriveManagerClass()
{ JMP_THIS(0x4E6070); }
public:
/*
Retrieves the number of the currently inserted disc
0 = RA2 Allied,
1 = RA2 Soviet,
2 = YR
*/
int GetCDNumber()
{ JMP_THIS(0x4A80D0); }
//Properties
public:
int CDDriveNames [26]; //int + 'A' would be the drive's name
int NumCDDrives;
DWORD unknown_6C;
};
class CD
{
public:
virtual bool ForceAvailable(int nCDNumber) R0;
virtual bool InsertCDDialog() R0;
virtual void SwapToDisk() R0;
public:
DWORD unknown_04;
protected:
CD() RX;
};