-// (c) Copyright 2006 notaz, All rights reserved.\r
+// (c) Copyright 2007 notaz, All rights reserved.\r
// Free for non-commercial use.\r
\r
// For commercial use, separate licencing terms must be obtained.\r
static void menu_prepare_bg(int use_game_bg);\r
\r
static unsigned int inp_prev = 0;\r
-static int inp_prevjoy = 0;\r
\r
static unsigned long wait_for_input(unsigned int interesting)\r
{\r
wait = 50;\r
}\r
inp_prev = ret;\r
- inp_prevjoy = 0;\r
\r
// we don't need diagonals in menus\r
if ((ret&BTN_UP) && (ret&BTN_LEFT)) ret &= ~BTN_LEFT;\r
BOOL bRet;\r
\r
wdir = malloc(sizeof(wdir[0]) * MAX_PATH);\r
- if (wdir == NULL) { lprintf_al("%s:%s: OOM\n", __FILE__, __LINE__); goto fail; }\r
+ if (wdir == NULL) { lprintf_al("%s:%i: OOM\n", __FILE__, __LINE__); goto fail; }\r
\r
namelist = malloc(sizeof(*namelist) * name_alloc);\r
- if (namelist == NULL) { lprintf_al("%s:%s: OOM\n", __FILE__, __LINE__); goto fail; }\r
+ if (namelist == NULL) { lprintf_al("%s:%i: OOM\n", __FILE__, __LINE__); goto fail; }\r
\r
// try to read first..\r
len = cstr2wstr(wdir, dir);\r
void *tmp;\r
name_alloc *= 2;\r
tmp = realloc(namelist, sizeof(*namelist) * name_alloc);\r
- if (tmp == NULL) { lprintf_al("%s:%s: OOM\n", __FILE__, __LINE__); goto fail; }\r
+ if (tmp == NULL) { lprintf_al("%s:%i: OOM\n", __FILE__, __LINE__); goto fail; }\r
namelist = tmp;\r
}\r
\r
\r
// For commercial use, separate licencing terms must be obtained.\r
\r
-void menu_init(void);\r
-void text_out16(int x, int y, const char *texto, ...);\r
void menu_loop(void);\r
int menu_loop_tray(void);\r
void menu_romload_prepare(const char *rom_name);\r