notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new memory handling, but asm and mappers need update.
[libpicofe.git]
/
common
/
emu.h
diff --git
a/common/emu.h
b/common/emu.h
index
f08d12a
..
5b695ef
100644
(file)
--- a/
common/emu.h
+++ b/
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
@@
-97,6
+99,13
@@
enum TPicoGameState {
PGS_SuspendWake, /* 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);
@@
-113,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);