OSDN Git Service

[VM][DEVICE] Add name to all of components.
[csp-qt/common_source_project-fm7.git] / source / src / vm / z80tvgame / z80tvgame.cpp
index 0235761..61838ad 100644 (file)
@@ -39,6 +39,9 @@ VM::VM(EMU* parent_emu) : emu(parent_emu)
        first_device = last_device = NULL;
        dummy = new DEVICE(this, emu);  // must be 1st device
        event = new EVENT(this, emu);   // must be 2nd device
+#if defined(_USE_QT)
+       dummy->set_device_name(_T("1st Dummy"));
+#endif 
        
 #ifdef _USE_I8255
        pio = new I8255(this, emu);
@@ -47,9 +50,16 @@ VM::VM(EMU* parent_emu) : emu(parent_emu)
 #endif
        pcm = new PCM1BIT(this, emu);
        cpu = new Z80(this, emu);
+#if defined(_USE_QT)
+       cpu->set_device_name(_T("CPU(Z80)"));
+#endif 
        
        joystick = new JOYSTICK(this, emu);
        memory = new MEMORY(this, emu);
+#if defined(_USE_QT)
+       joystick->set_device_name(_T("JOYSTICK I/F"));
+       memory->set_device_name(_T("MEMORY"));
+#endif 
        
        // set contexts
        event->set_context_cpu(cpu);