mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
add a bunch of code
This commit is contained in:
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user