OSDN Git Service

[VM][STATE] Apply new state framework to some devices a lot (excepts some devices...
[csp-qt/common_source_project-fm7.git] / source / src / vm / hd44102.cpp
index d8a091c..a7438ce 100644 (file)
@@ -249,7 +249,7 @@ void HD44102::screen_update(int m_sx, int m_sy, bool reverse)
 
 void HD44102::decl_state()
 {
-       state_entry = new csp_state_utils(STATE_VERSION, this_device_id, _T("HD44102"));
+       enter_decl_state(STATE_VERSION);
 
        DECL_STATE_ENTRY_2D_ARRAY(m_ram, 4, 50);
        DECL_STATE_ENTRY_UINT8(m_status);
@@ -259,6 +259,7 @@ void HD44102::decl_state()
        DECL_STATE_ENTRY_INT32(m_x);
        DECL_STATE_ENTRY_INT32(m_y);
 
+       leave_decl_state();
 }
 void HD44102::save_state(FILEIO* state_fio)
 {