* start coding UI shito for savestates

* change default mapping for L button to the key right next to Shift because we're gonna derp around with it
* still some shito to fix, but hang on, we're getting there
This commit is contained in:
StapleButter
2018-10-23 19:57:01 +02:00
parent 4075dad0a8
commit c9a7a0d744
3 changed files with 237 additions and 44 deletions

View File

@ -16,7 +16,9 @@
with melonDS. If not, see http://www.gnu.org/licenses/.
*/
#include <stdio.h>
#include "Savestate.h"
#include "melon_fopen.h"
/*
Savestate format
@ -54,7 +56,7 @@ Savestate::Savestate(char* filename, bool save)
if (save)
{
Saving = true;
file = fopen(filename, "wb");
file = melon_fopen(filename, "wb");
if (!file)
{
printf("savestate: file %s doesn't exist\n", filename);
@ -73,7 +75,7 @@ Savestate::Savestate(char* filename, bool save)
else
{
Saving = false;
file = fopen(filename, "rb");
file = melon_fopen(filename, "rb");
if (!file)
{
printf("savestate: file %s doesn't exist\n", filename);