OSDN Git Service

[VM][STATE] Apply New framework to some VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pv1000 / psg.cpp
index 120880c..9df6995 100644 (file)
@@ -8,7 +8,7 @@
 */
 
 #include <math.h>
-#include "psg.h"
+#include "./psg.h"
 
 #define PSG_CLOCK
 #define PSG_VOLUME     8192
@@ -62,51 +62,6 @@ void PSG::set_volume(int ch, int decibel_l, int decibel_r)
 
 #define STATE_VERSION  1
 
-#include "../../statesub.h"
-
-void PSG::decl_state()
-{
-       enter_decl_state(STATE_VERSION);
-
-       DECL_STATE_ENTRY_INT32_STRIDE((ch[0].period), 3, sizeof(ch[0]));
-       
-       leave_decl_state();
-}
-
-void PSG::save_state(FILEIO* state_fio)
-{
-       if(state_entry != NULL) {
-               state_entry->save_state(state_fio);
-       }
-//     state_fio->FputUint32(STATE_VERSION);
-//     state_fio->FputInt32(this_device_id);
-       
-//     for(int i = 0; i < 3; i++) {
-//             state_fio->FputInt32(ch[i].period);
-//     }
-}
-
-bool PSG::load_state(FILEIO* state_fio)
-{
-       bool mb = false;
-       if(state_entry != NULL) {
-               mb = state_entry->load_state(state_fio);
-       }
-       if(!mb) {
-               return false;
-       }
-//     if(state_fio->FgetUint32() != STATE_VERSION) {
-//             return false;
-//     }
-//     if(state_fio->FgetInt32() != this_device_id) {
-//             return false;
-//     }
-//     for(int i = 0; i < 3; i++) {
-//             ch[i].period = state_fio->FgetInt32();
-//     }
-       return true;
-}
-
 bool PSG::process_state(FILEIO* state_fio, bool loading)
 {
        if(!state_fio->StateCheckUint32(STATE_VERSION)) {