* lay base for 3D engine

* add failure reporting to Init functions, and DeInit functions
* GPU-related notes
* readme update
This commit is contained in:
StapleButter
2017-02-07 22:23:46 +01:00
parent 86cdf28323
commit 0562410de2
17 changed files with 274 additions and 40 deletions

View File

@ -53,15 +53,21 @@ void Write_Flash(u8 val, bool islast);
void Write_Discover(u8 val, bool islast);
void Init()
bool Init()
{
SRAM = NULL;
Discover_Buffer = NULL;
return true;
}
void DeInit()
{
if (SRAM) delete[] SRAM;
if (Discover_Buffer) delete[] Discover_Buffer;
}
void Reset()
{
//
}
void LoadSave(char* path)
@ -69,6 +75,8 @@ void LoadSave(char* path)
if (SRAM) delete[] SRAM;
if (Discover_Buffer) delete[] Discover_Buffer;
Discover_Buffer = NULL;
strncpy(SRAMPath, path, 255);
SRAMPath[255] = '\0';
@ -553,9 +561,16 @@ void Key2_Encrypt(u8* data, u32 len)
}
void Init()
bool Init()
{
NDSCart_SRAM::Init();
if (!NDSCart_SRAM::Init()) return false;
return true;
}
void DeInit()
{
NDSCart_SRAM::DeInit();
}
void Reset()