OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / n5200 / memory.h
index eaab6dc..fb9b2f1 100644 (file)
@@ -7,13 +7,15 @@
        [ memory ]
 */
 
-#ifndef _MEMORY_H_
-#define _MEMORY_H_
+#ifndef _N5200_MEMORY_H_
+#define _N5200_MEMORY_H_
 
 #include "../vm.h"
 #include "../../emu.h"
 #include "../device.h"
 
+namespace N5200 {
+
 class MEMORY : public DEVICE
 {
 private:
@@ -32,7 +34,10 @@ private:
        bool protect;
        
 public:
-       MEMORY(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
+       MEMORY(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       {
+               set_device_name(_T("Memory Bus"));
+       }
        ~MEMORY() {}
        
        // common functions
@@ -55,5 +60,6 @@ public:
        }
 };
 
+}
 #endif