• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

Revision9c18fc9259f1042e464eab4e85a60c8371122569 (tree)
Time2019-10-14 03:19:01
AuthorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[VM][PC8801] Fix double install DEBUGGER:: for OPN#1,#2.Thanks to https://matsuri.5ch.net/test/read.cgi/i4004/1526806551/598 .

Change Summary

Incremental Difference

--- a/source/src/vm/pc8801/pc8801.cpp
+++ b/source/src/vm/pc8801/pc8801.cpp
@@ -107,9 +107,6 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu)
107107 // 4: 44h:OPNA A4h:OPNA PC-8801FH/MH or later + PC-8801-24
108108 // 5: 44h:OPNA A4h:OPN PC-8801FH/MH or later + PC-8801-11
109109 pc88opn1 = new YM2203(this, emu);
110-#ifdef USE_DEBUGGER
111- pc88opn1->set_context_debugger(new DEBUGGER(this, emu));
112-#endif
113110 if(config.sound_type == 0 || config.sound_type == 4 || config.sound_type == 5) {
114111 pc88opn1->is_ym2608 = true;
115112 pc88opn1->set_device_name(_T("YM2608 OPNA #1"));
@@ -119,9 +116,6 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu)
119116 }
120117 if(config.sound_type >= 2) {
121118 pc88opn2 = new YM2203(this, emu);
122- #ifdef USE_DEBUGGER
123- pc88opn2->set_context_debugger(new DEBUGGER(this, emu));
124- #endif
125119 if(config.sound_type == 2 || config.sound_type == 4) {
126120 pc88opn2->is_ym2608 = true;
127121 pc88opn2->set_device_name(_T("YM2608 OPNA #2"));
@@ -139,17 +133,11 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu)
139133 pc88opn1 = new YM2203(this, emu);
140134 pc88opn1->is_ym2608 = false;
141135 pc88opn1->set_device_name(_T("YM2203 OPN #1"));
142-#ifdef USE_DEBUGGER
143- pc88opn1->set_context_debugger(new DEBUGGER(this, emu));
144-#endif
145136 if(config.sound_type == 1) {
146137 pc88opn2 = new YM2203(this, emu);
147138 // pc88opn2->set_context_event_manager(pc88event);
148139 pc88opn2->is_ym2608 = false;
149140 pc88opn2->set_device_name(_T("YM2203 OPN #2"));
150- #ifdef USE_DEBUGGER
151- pc88opn2->set_context_debugger(new DEBUGGER(this, emu));
152- #endif
153141 } else {
154142 pc88opn2 = NULL;
155143 }
@@ -160,9 +148,6 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu)
160148 pc88opn2 = new YM2203(this, emu);
161149 pc88opn2->is_ym2608 = false;
162150 pc88opn2->set_device_name(_T("YM2203 OPN #2"));
163- #ifdef USE_DEBUGGER
164- pc88opn2->set_context_debugger(new DEBUGGER(this, emu));
165- #endif
166151 } else {
167152 pc88opn2 = NULL;
168153 }
@@ -176,9 +161,6 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu)
176161 pc88opn1->is_ym2608 = false;
177162 pc88opn1->set_device_name(_T("YM2203 OPN #1"));
178163 #endif
179- #ifdef USE_DEBUGGER
180- pc88opn1->set_context_debugger(new DEBUGGER(this, emu));
181- #endif
182164 #endif
183165 #if defined(SUPPORT_PC88_OPN2)
184166 pc88opn2 = new YM2203(this, emu);
@@ -189,9 +171,6 @@ VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu)
189171 pc88opn2->is_ym2608 = false;
190172 pc88opn2->set_device_name(_T("YM2203 OPN #2"));
191173 #endif
192- #ifdef USE_DEBUGGER
193- pc88opn2->set_context_debugger(new DEBUGGER(this, emu));
194- #endif
195174 #endif
196175 #endif
197176 #ifdef USE_DEBUGGER
Show on old repository browser