committing WIP. won't build or anything.

This commit is contained in:
Arisotura
2021-12-23 13:20:26 +01:00
parent 8aae5302c3
commit 3383c396cd
13 changed files with 545 additions and 118 deletions

View File

@ -19,6 +19,8 @@
#ifndef NDS_H
#define NDS_H
#include <string>
#include "Savestate.h"
#include "types.h"
@ -219,6 +221,7 @@ extern u8* ARM7WRAM;
bool Init();
void DeInit();
void Reset();
void Start();
void Stop();
bool DoSavestate(Savestate* file);
@ -229,13 +232,20 @@ void SetARM7RegionTimings(u32 addrstart, u32 addrend, u32 region, int buswidth,
// 0=DS 1=DSi
void SetConsoleType(int type);
bool LoadROM(const char* path, const char* sram, bool direct);
/*bool LoadROM(const char* path, const char* sram, bool direct);
bool LoadROM(const u8* romdata, u32 filelength, const char *sram, bool direct);
bool LoadGBAROM(const char* path, const char* sram);
bool LoadGBAROM(const u8* romdata, u32 filelength, const char *filename, const char *sram);
bool LoadGBAROM(const u8* romdata, u32 filelength, const char *filename, const char *sram);*/
void LoadBIOS();
void SetupDirectBoot();
void RelocateSave(const char* path, bool write);
bool LoadCart(const u8* romdata, u32 romlen, const u8* savedata, u32 savelen);
void EjectCart();
void SetupDirectBoot(std::string romname);
bool LoadGBACart(const u8* romdata, u32 romlen, const u8* savedata, u32 savelen);
void EjectGBACart();
//void RelocateSave(const char* path, bool write);
u32 RunFrame();