mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 14:57:46 -04:00
major menu unification, minor reorganization
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@639 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
24b24674ae
commit
049a6b3e80
21 changed files with 1638 additions and 500 deletions
|
@ -42,11 +42,8 @@
|
|||
#endif
|
||||
|
||||
|
||||
int engineState;
|
||||
int select_exits = 0;
|
||||
|
||||
char romFileName[PATH_MAX];
|
||||
|
||||
static short __attribute__((aligned(4))) sndBuffer[2*44100/50];
|
||||
static struct timeval noticeMsgTime = { 0, 0 }; // when started showing
|
||||
static int osd_fps_x;
|
||||
|
|
|
@ -50,9 +50,9 @@ void parse_cmd_line(int argc, char *argv[])
|
|||
} else {
|
||||
/* External Frontend: ROM Name */
|
||||
FILE *f;
|
||||
strncpy(romFileName, argv[x], PATH_MAX);
|
||||
romFileName[PATH_MAX-1] = 0;
|
||||
f = fopen(romFileName, "rb");
|
||||
strncpy(rom_fname_reload, argv[x], PATH_MAX);
|
||||
rom_fname_reload[PATH_MAX-1] = 0;
|
||||
f = fopen(rom_fname_reload, "rb");
|
||||
if (f) fclose(f);
|
||||
else unrecognized = 1;
|
||||
engineState = PGS_ReloadRom;
|
||||
|
@ -96,7 +96,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (engineState == PGS_ReloadRom)
|
||||
{
|
||||
if (emu_ReloadRom(romFileName)) {
|
||||
if (emu_ReloadRom(rom_fname_reload)) {
|
||||
engineState = PGS_Running;
|
||||
if (load_state_slot >= 0) {
|
||||
state_slot = load_state_slot;
|
||||
|
@ -114,7 +114,7 @@ int main(int argc, char *argv[])
|
|||
break;
|
||||
|
||||
case PGS_ReloadRom:
|
||||
if (emu_ReloadRom(romFileName))
|
||||
if (emu_ReloadRom(rom_fname_reload))
|
||||
engineState = PGS_Running;
|
||||
else {
|
||||
printf("PGS_ReloadRom == 0\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue