add a bunch of code

This commit is contained in:
Arisotura
2020-04-27 22:02:45 +02:00
parent d6efb03248
commit 931da1c66f
5 changed files with 284 additions and 13 deletions

View File

@ -21,10 +21,44 @@
#include "types.h"
namespace FrontendUtil
namespace Frontend
{
//
enum
{
ROMSlot_NDS = 0,
ROMSlot_GBA,
ROMSlot_MAX
};
extern char ROMPath [ROMSlot_MAX][1024];
extern char SRAMPath[ROMSlot_MAX][1024];
extern bool SavestateLoaded;
// initialize the ROM handling utility
void Init_ROM();
// load a ROM file to the specified cart slot
// note: loading a ROM to the NDS slot resets emulation
bool LoadROM(char* file, int slot);
// get the filename associated with the given savestate slot
void GetSavestateName(int slot, char* filename, int len);
// determine whether the given savestate slot does contain a savestate
bool SavestateExists(int slot);
// load the given savestate file
// if successful, emulation will continue from the savestate's point
bool LoadState(const char* filename);
// save the current emulator state to the given file
bool SaveState(const char* filename);
// undo the latest savestate load
void UndoStateLoad();
}