starting SMS work
[libpicofe.git] / common / emu.h
index 2f5357a..5b695ef 100644 (file)
@@ -9,6 +9,8 @@
 extern "C" {
 #endif
 
+#define array_size(x) (sizeof(x) / sizeof(x[0]))
+
 extern void *g_screen_ptr;
 
 #if SCREEN_SIZE_FIXED
@@ -91,11 +93,19 @@ enum TPicoGameState {
        PGS_KeyConfig,
        PGS_ReloadRom,
        PGS_Menu,
+       PGS_TrayMenu,
        PGS_RestartRun,
        PGS_Suspending,         /* PSP */
        PGS_SuspendWake,        /* PSP */
 };
 
+// media types
+enum {
+       PM_BAD = 0,
+       PM_MD_CART,     /* also 32x */
+       PM_MARK3,
+       PM_CD,
+};
 
 void  emu_init(void);
 void  emu_finish(void);
@@ -112,7 +122,6 @@ int   emu_write_config(int game);
 
 char *emu_get_save_fname(int load, int is_sram, int slot);
 int   emu_check_save_file(int slot);
-void  emu_setSaveStateCbs(int gz);
 
 void  emu_text_out8 (int x, int y, const char *text);
 void  emu_text_out16(int x, int y, const char *text);