Update of /cvsroot/vba/VisualBoyAdvance/src/gb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14611
Modified Files:
GB.cpp GB.h
Log Message:
Use structure for emulation functions
Index: GB.cpp
===================================================================
RCS file: /cvsroot/vba/VisualBoyAdvance/src/gb/GB.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** GB.cpp 20 Jan 2004 00:47:03 -0000 1.14
--- GB.cpp 28 Jan 2004 17:45:13 -0000 1.15
***************
*** 3141,3142 ****
--- 3141,3173 ----
}
}
+
+ struct EmulatedSystem GBSystem = {
+ // emuMain
+ gbEmulate,
+ // emuReset
+ gbReset,
+ // emuCleanUp
+ gbCleanUp,
+ // emuReadBattery
+ gbReadBatteryFile,
+ // emuWriteBattery
+ gbWriteBatteryFile,
+ // emuReadState
+ gbReadSaveState,
+ // emuWriteState
+ gbWriteSaveState,
+ // emuReadMemState
+ gbReadMemSaveState,
+ // emuWriteMemState
+ gbWriteMemSaveState,
+ // emuWritePNG
+ gbWritePNGFile,
+ // emuWriteBMP
+ gbWriteBMPFile,
+ // emuCount
+ #ifdef FINAL_VERSION
+ 70000/4,
+ #else
+ 1000,
+ #endif
+ };
Index: GB.h
===================================================================
RCS file: /cvsroot/vba/VisualBoyAdvance/src/gb/GB.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** GB.h 4 Nov 2003 14:08:07 -0000 1.3
--- GB.h 28 Jan 2004 17:45:13 -0000 1.4
***************
*** 17,20 ****
--- 17,23 ----
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+ #ifndef VBA_GB_GB_H
+ #define VBA_GB_GB_H
+
#define C_FLAG 0x10
#define H_FLAG 0x20
***************
*** 51,52 ****
--- 54,59 ----
extern bool gbWriteBMPFile(const char *);
extern bool gbReadGSASnapshot(const char *);
+
+ extern struct EmulatedSystem GBSystem;
+
+ #endif
|