Skip to content

Commit 0df92f9

Browse files
committed
Fix duplicated CDvdRequestSys
1 parent 802b3b2 commit 0df92f9

2 files changed

Lines changed: 13 additions & 19 deletions

File tree

‎include/Kyoto/CDvdRequestManager.hpp‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,19 @@
33

44
class CDvdRequestSys {
55
public:
6+
CDvdRequestSys() {
7+
if (mManagerInstalled != true) {
8+
mManagerInstalled = true;
9+
}
10+
}
11+
~CDvdRequestSys() {
12+
if (mManagerInstalled == true) {
13+
mManagerInstalled = false;
14+
}
15+
}
16+
17+
private:
618
static bool mManagerInstalled;
719
};
820

9-
1021
#endif // _CDVDREQUESTMANAGER

‎include/MetroidPrime/CMain.hpp‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "Kyoto/Alloc/CMemorySys.hpp"
99
#include "Kyoto/Basics/COsContext.hpp"
1010
#include "Kyoto/Basics/CStopwatch.hpp"
11+
#include "Kyoto/CDvdRequestManager.hpp"
1112
#include "Kyoto/Streams/CInputStream.hpp"
1213
#include "Kyoto/TReservedAverage.hpp"
1314
#include "MetroidPrime/CGameArchitectureSupport.hpp"
@@ -29,24 +30,6 @@ class CSaveRegion {
2930
static void* mNonVolatileSettingsBuf;
3031
};
3132

32-
// TODO move to new header
33-
class CDvdRequestSys {
34-
public:
35-
CDvdRequestSys() {
36-
if (mManagerInstalled != true) {
37-
mManagerInstalled = true;
38-
}
39-
}
40-
~CDvdRequestSys() {
41-
if (mManagerInstalled == true) {
42-
mManagerInstalled = false;
43-
}
44-
}
45-
46-
private:
47-
static bool mManagerInstalled;
48-
};
49-
5033
class CMain {
5134
public:
5235
enum ERestartMode {

0 commit comments

Comments
 (0)