File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ auto System::game() -> string {
77
77
}
78
78
79
79
auto System::run () -> void {
80
- // todo: terrible; fix; remove
80
+ // not ideal
81
81
if (!vulkanLoaded) {
82
82
vulkan.load (node);
83
83
vulkanLoaded = true ;
@@ -139,9 +139,6 @@ auto System::load(Node::System& root, string name) -> bool {
139
139
rdp.load (node);
140
140
if (_DD ()) dd.load (node);
141
141
if (model () == Model::Aleck64) aleck64.load (node);
142
- #if defined(VULKAN)
143
- // vulkan.load(node);
144
- #endif
145
142
146
143
initDebugHooks ();
147
144
@@ -313,6 +310,7 @@ auto System::unload() -> void {
313
310
if (vi.screen ) vi.screen ->quit (); // stop video thread
314
311
#if defined(VULKAN)
315
312
vulkan.unload ();
313
+ vulkanLoaded = false ;
316
314
#endif
317
315
cartridgeSlot.unload ();
318
316
controllerPort1.unload ();
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ struct System {
5
5
bool expansionPak = true ;
6
6
u8 configuredControllerPakBankCount = 1 ;
7
7
u8 controllerPakBankCount = 1 ;
8
- bool vulkanLoaded = false ;
9
8
10
9
enum class Model : u32 { Nintendo64, Aleck64 };
11
10
enum class Region : u32 { NTSC, PAL };
@@ -38,6 +37,8 @@ struct System {
38
37
u32 videoFrequency = 48'681'818 ;
39
38
bool dd = false ;
40
39
} information;
40
+
41
+ bool vulkanLoaded = false ;
41
42
42
43
auto initDebugHooks () -> void;
43
44
You can’t perform that action at this time.
0 commit comments