mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 14:57:46 -04:00
runs code in 1M wram, cell arrange, decode (untested)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@54 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
01939b3b9c
commit
1078e5440e
2 changed files with 10 additions and 10 deletions
18
gp2x/emu.c
18
gp2x/emu.c
|
@ -764,6 +764,12 @@ static int check_save_file(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void emu_state_cb(const char *str)
|
||||||
|
{
|
||||||
|
clearArea(0);
|
||||||
|
blit("", str);
|
||||||
|
}
|
||||||
|
|
||||||
static void RunEvents(unsigned int which)
|
static void RunEvents(unsigned int which)
|
||||||
{
|
{
|
||||||
if(which & 0x1800) { // save or load (but not both)
|
if(which & 0x1800) { // save or load (but not both)
|
||||||
|
@ -778,7 +784,10 @@ static void RunEvents(unsigned int which)
|
||||||
}
|
}
|
||||||
if (do_it) {
|
if (do_it) {
|
||||||
osd_text(4, 232, (which & 0x1000) ? "LOADING GAME" : "SAVING GAME");
|
osd_text(4, 232, (which & 0x1000) ? "LOADING GAME" : "SAVING GAME");
|
||||||
|
PicoStateProgressCB = emu_state_cb;
|
||||||
|
gp2x_memcpy_all_buffers(gp2x_screen, 0, 320*240*2);
|
||||||
emu_SaveLoadGame((which & 0x1000) >> 12, 0);
|
emu_SaveLoadGame((which & 0x1000) >> 12, 0);
|
||||||
|
PicoStateProgressCB = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
reset_timing = 1;
|
reset_timing = 1;
|
||||||
|
@ -1263,20 +1272,11 @@ size_t gzWrite2(void *p, size_t _size, size_t _n, void *file)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void emu_state_cb(const char *str)
|
|
||||||
{
|
|
||||||
clearArea(0);
|
|
||||||
blit("", str);
|
|
||||||
}
|
|
||||||
|
|
||||||
int emu_SaveLoadGame(int load, int sram)
|
int emu_SaveLoadGame(int load, int sram)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
char saveFname[512];
|
char saveFname[512];
|
||||||
|
|
||||||
PicoStateProgressCB = emu_state_cb;
|
|
||||||
gp2x_memcpy_all_buffers(gp2x_screen, 0, 320*240*2);
|
|
||||||
|
|
||||||
// make save filename
|
// make save filename
|
||||||
romfname_ext(saveFname, "");
|
romfname_ext(saveFname, "");
|
||||||
if(sram) strcat(saveFname, (PicoMCD&1) ? ".brm" : ".srm");
|
if(sram) strcat(saveFname, (PicoMCD&1) ? ".brm" : ".srm");
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#define VERSION "1.14"
|
#define VERSION "1.15"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue