mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
minor adjustments
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@273 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
0ffa8947ee
commit
3c392aec73
4 changed files with 5 additions and 9 deletions
|
@ -104,7 +104,7 @@ void emu_Init(void)
|
||||||
void emu_Deinit(void)
|
void emu_Deinit(void)
|
||||||
{
|
{
|
||||||
// save SRAM
|
// save SRAM
|
||||||
if((currentConfig.EmuOpt & 1) && SRam.changed) {
|
if ((currentConfig.EmuOpt & 1) && SRam.changed) {
|
||||||
emu_SaveLoadGame(0, 1);
|
emu_SaveLoadGame(0, 1);
|
||||||
SRam.changed = 0;
|
SRam.changed = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// (c) Copyright 2006 notaz, All rights reserved.
|
// (c) Copyright 2007 notaz, All rights reserved.
|
||||||
// Free for non-commercial use.
|
// Free for non-commercial use.
|
||||||
|
|
||||||
// For commercial use, separate licencing terms must be obtained.
|
// For commercial use, separate licencing terms must be obtained.
|
||||||
|
|
|
@ -45,7 +45,6 @@ static void menu_darken_bg(void *dst, const void *src, int pixels, int darker);
|
||||||
static void menu_prepare_bg(int use_game_bg);
|
static void menu_prepare_bg(int use_game_bg);
|
||||||
|
|
||||||
static unsigned int inp_prev = 0;
|
static unsigned int inp_prev = 0;
|
||||||
static int inp_prevjoy = 0;
|
|
||||||
|
|
||||||
static unsigned long wait_for_input(unsigned int interesting)
|
static unsigned long wait_for_input(unsigned int interesting)
|
||||||
{
|
{
|
||||||
|
@ -71,7 +70,6 @@ static unsigned long wait_for_input(unsigned int interesting)
|
||||||
wait = 50;
|
wait = 50;
|
||||||
}
|
}
|
||||||
inp_prev = ret;
|
inp_prev = ret;
|
||||||
inp_prevjoy = 0;
|
|
||||||
|
|
||||||
// we don't need diagonals in menus
|
// we don't need diagonals in menus
|
||||||
if ((ret&BTN_UP) && (ret&BTN_LEFT)) ret &= ~BTN_LEFT;
|
if ((ret&BTN_UP) && (ret&BTN_LEFT)) ret &= ~BTN_LEFT;
|
||||||
|
@ -264,10 +262,10 @@ static int my_scandir(const char *dir, struct my_dirent ***namelist_out,
|
||||||
BOOL bRet;
|
BOOL bRet;
|
||||||
|
|
||||||
wdir = malloc(sizeof(wdir[0]) * MAX_PATH);
|
wdir = malloc(sizeof(wdir[0]) * MAX_PATH);
|
||||||
if (wdir == NULL) { lprintf_al("%s:%s: OOM\n", __FILE__, __LINE__); goto fail; }
|
if (wdir == NULL) { lprintf_al("%s:%i: OOM\n", __FILE__, __LINE__); goto fail; }
|
||||||
|
|
||||||
namelist = malloc(sizeof(*namelist) * name_alloc);
|
namelist = malloc(sizeof(*namelist) * name_alloc);
|
||||||
if (namelist == NULL) { lprintf_al("%s:%s: OOM\n", __FILE__, __LINE__); goto fail; }
|
if (namelist == NULL) { lprintf_al("%s:%i: OOM\n", __FILE__, __LINE__); goto fail; }
|
||||||
|
|
||||||
// try to read first..
|
// try to read first..
|
||||||
len = cstr2wstr(wdir, dir);
|
len = cstr2wstr(wdir, dir);
|
||||||
|
@ -312,7 +310,7 @@ static int my_scandir(const char *dir, struct my_dirent ***namelist_out,
|
||||||
void *tmp;
|
void *tmp;
|
||||||
name_alloc *= 2;
|
name_alloc *= 2;
|
||||||
tmp = realloc(namelist, sizeof(*namelist) * name_alloc);
|
tmp = realloc(namelist, sizeof(*namelist) * name_alloc);
|
||||||
if (tmp == NULL) { lprintf_al("%s:%s: OOM\n", __FILE__, __LINE__); goto fail; }
|
if (tmp == NULL) { lprintf_al("%s:%i: OOM\n", __FILE__, __LINE__); goto fail; }
|
||||||
namelist = tmp;
|
namelist = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
|
|
||||||
// For commercial use, separate licencing terms must be obtained.
|
// For commercial use, separate licencing terms must be obtained.
|
||||||
|
|
||||||
void menu_init(void);
|
|
||||||
void text_out16(int x, int y, const char *texto, ...);
|
|
||||||
void menu_loop(void);
|
void menu_loop(void);
|
||||||
int menu_loop_tray(void);
|
int menu_loop_tray(void);
|
||||||
void menu_romload_prepare(const char *rom_name);
|
void menu_romload_prepare(const char *rom_name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue