mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-11-25 12:06:55 +01:00
Fix save/restore (name states .uss, and fix how restore is called)
This commit is contained in:
parent
c81f0179de
commit
eb9b099927
@ -453,13 +453,17 @@ static void save_load_state(int which)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (which == 0)
|
if (which == 0)
|
||||||
restore_state(name);
|
{
|
||||||
|
strcpy(savestate_fname, name);
|
||||||
|
savestate_state = STATE_DORESTORE;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
unlink(name);
|
unlink(name);
|
||||||
free((void*)name);
|
free((void*)name);
|
||||||
} break;
|
} break;
|
||||||
case 1: /* Save state */
|
case 1: /* Save state */
|
||||||
snprintf(db, 255, "%s/%s.sav", dir, fb);
|
snprintf(db, 255, "%s/%s.uss", dir, fb);
|
||||||
|
savestate_state = STATE_DOSAVE;
|
||||||
save_state(db, floppy0);
|
save_state(db, floppy0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -265,7 +265,7 @@ static const char **get_file_list(const char *base_dir)
|
|||||||
{
|
{
|
||||||
char buf[255];
|
char buf[255];
|
||||||
const char *exts[] = {".adf", ".ADF", ".adz", ".ADZ",
|
const char *exts[] = {".adf", ".ADF", ".adz", ".ADZ",
|
||||||
".sav", ".SAV", NULL};
|
".sav", ".SAV", ".uss", ".USS", NULL};
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
snprintf(buf, 255, "%s/%s", base_dir, de->d_name);
|
snprintf(buf, 255, "%s/%s", base_dir, de->d_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user