Common Source Code Project for Qt (a.k.a for FM-7).
Revision | 9c18fc9259f1042e464eab4e85a60c8371122569 (tree) |
---|---|
Time | 2019-10-14 03:19:01 |
Author | K.Ohta <whatisthis.sowhat@gmai...> |
Commiter | K.Ohta |
[VM][PC8801] Fix double install DEBUGGER:: for OPN#1,#2.Thanks to https://matsuri.5ch.net/test/read.cgi/i4004/1526806551/598 .
@@ -107,9 +107,6 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu) | ||
107 | 107 | // 4: 44h:OPNA A4h:OPNA PC-8801FH/MH or later + PC-8801-24 |
108 | 108 | // 5: 44h:OPNA A4h:OPN PC-8801FH/MH or later + PC-8801-11 |
109 | 109 | pc88opn1 = new YM2203(this, emu); |
110 | -#ifdef USE_DEBUGGER | |
111 | - pc88opn1->set_context_debugger(new DEBUGGER(this, emu)); | |
112 | -#endif | |
113 | 110 | if(config.sound_type == 0 || config.sound_type == 4 || config.sound_type == 5) { |
114 | 111 | pc88opn1->is_ym2608 = true; |
115 | 112 | pc88opn1->set_device_name(_T("YM2608 OPNA #1")); |
@@ -119,9 +116,6 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu) | ||
119 | 116 | } |
120 | 117 | if(config.sound_type >= 2) { |
121 | 118 | pc88opn2 = new YM2203(this, emu); |
122 | - #ifdef USE_DEBUGGER | |
123 | - pc88opn2->set_context_debugger(new DEBUGGER(this, emu)); | |
124 | - #endif | |
125 | 119 | if(config.sound_type == 2 || config.sound_type == 4) { |
126 | 120 | pc88opn2->is_ym2608 = true; |
127 | 121 | pc88opn2->set_device_name(_T("YM2608 OPNA #2")); |
@@ -139,17 +133,11 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu) | ||
139 | 133 | pc88opn1 = new YM2203(this, emu); |
140 | 134 | pc88opn1->is_ym2608 = false; |
141 | 135 | pc88opn1->set_device_name(_T("YM2203 OPN #1")); |
142 | -#ifdef USE_DEBUGGER | |
143 | - pc88opn1->set_context_debugger(new DEBUGGER(this, emu)); | |
144 | -#endif | |
145 | 136 | if(config.sound_type == 1) { |
146 | 137 | pc88opn2 = new YM2203(this, emu); |
147 | 138 | // pc88opn2->set_context_event_manager(pc88event); |
148 | 139 | pc88opn2->is_ym2608 = false; |
149 | 140 | pc88opn2->set_device_name(_T("YM2203 OPN #2")); |
150 | - #ifdef USE_DEBUGGER | |
151 | - pc88opn2->set_context_debugger(new DEBUGGER(this, emu)); | |
152 | - #endif | |
153 | 141 | } else { |
154 | 142 | pc88opn2 = NULL; |
155 | 143 | } |
@@ -160,9 +148,6 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu) | ||
160 | 148 | pc88opn2 = new YM2203(this, emu); |
161 | 149 | pc88opn2->is_ym2608 = false; |
162 | 150 | pc88opn2->set_device_name(_T("YM2203 OPN #2")); |
163 | - #ifdef USE_DEBUGGER | |
164 | - pc88opn2->set_context_debugger(new DEBUGGER(this, emu)); | |
165 | - #endif | |
166 | 151 | } else { |
167 | 152 | pc88opn2 = NULL; |
168 | 153 | } |
@@ -176,9 +161,6 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu) | ||
176 | 161 | pc88opn1->is_ym2608 = false; |
177 | 162 | pc88opn1->set_device_name(_T("YM2203 OPN #1")); |
178 | 163 | #endif |
179 | - #ifdef USE_DEBUGGER | |
180 | - pc88opn1->set_context_debugger(new DEBUGGER(this, emu)); | |
181 | - #endif | |
182 | 164 | #endif |
183 | 165 | #if defined(SUPPORT_PC88_OPN2) |
184 | 166 | pc88opn2 = new YM2203(this, emu); |
@@ -189,9 +171,6 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu) | ||
189 | 171 | pc88opn2->is_ym2608 = false; |
190 | 172 | pc88opn2->set_device_name(_T("YM2203 OPN #2")); |
191 | 173 | #endif |
192 | - #ifdef USE_DEBUGGER | |
193 | - pc88opn2->set_context_debugger(new DEBUGGER(this, emu)); | |
194 | - #endif | |
195 | 174 | #endif |
196 | 175 | #endif |
197 | 176 | #ifdef USE_DEBUGGER |