notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor xlib fix
[picodrive.git]
/
platform
/
common
/
emu.h
diff --git
a/platform/common/emu.h
b/platform/common/emu.h
index
28aed4f
..
5b695ef
100644
(file)
--- a/
platform/common/emu.h
+++ b/
platform/common/emu.h
@@
-9,6
+9,8
@@
extern "C" {
#endif
extern "C" {
#endif
+#define array_size(x) (sizeof(x) / sizeof(x[0]))
+
extern void *g_screen_ptr;
#if SCREEN_SIZE_FIXED
extern void *g_screen_ptr;
#if SCREEN_SIZE_FIXED
@@
-32,7
+34,7
@@
extern int g_screen_height;
#define EOPT_EN_CD_LEDS (1<<10)
#define EOPT_CONFIRM_LOAD (1<<11)
#define EOPT_A_SN_GAMMA (1<<12)
#define EOPT_EN_CD_LEDS (1<<10)
#define EOPT_CONFIRM_LOAD (1<<11)
#define EOPT_A_SN_GAMMA (1<<12)
-#define EOPT_
P
SYNC (1<<13)
+#define EOPT_
V
SYNC (1<<13)
#define EOPT_GIZ_SCANLN (1<<14)
#define EOPT_GIZ_DBLBUF (1<<15)
#define EOPT_VSYNC_MODE (1<<16)
#define EOPT_GIZ_SCANLN (1<<14)
#define EOPT_GIZ_DBLBUF (1<<15)
#define EOPT_VSYNC_MODE (1<<16)
@@
-91,16
+93,26
@@
enum TPicoGameState {
PGS_KeyConfig,
PGS_ReloadRom,
PGS_Menu,
PGS_KeyConfig,
PGS_ReloadRom,
PGS_Menu,
+ PGS_TrayMenu,
PGS_RestartRun,
PGS_Suspending, /* PSP */
PGS_SuspendWake, /* PSP */
};
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);
void emu_init(void);
void emu_finish(void);
+void emu_loop(void);
int emu_reload_rom(char *rom_fname);
int emu_reload_rom(char *rom_fname);
+int emu_swap_cd(const char *fname);
int emu_save_load_game(int load, int sram);
void emu_reset_game(void);
int emu_save_load_game(int load, int sram);
void emu_reset_game(void);
@@
-110,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);
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);
void emu_text_out8 (int x, int y, const char *text);
void emu_text_out16(int x, int y, const char *text);
@@
-121,7
+132,7
@@
void emu_make_path(char *buff, const char *end, int size);
void emu_update_input(void);
void emu_get_game_name(char *str150);
void emu_set_fastforward(int set_on);
void emu_update_input(void);
void emu_get_game_name(char *str150);
void emu_set_fastforward(int set_on);
-
int emu_cd_check(int *pregion, char *fname_in
);
+
void emu_status_msg(const char *format, ...
);
#ifdef __cplusplus
} // extern "C"
#ifdef __cplusplus
} // extern "C"