separate SRAM setting coded, I guess

This commit is contained in:
StapleButter
2018-10-24 00:24:36 +02:00
parent 1edf2aed3b
commit 8b4ba2d8b9
7 changed files with 79 additions and 8 deletions

View File

@ -196,8 +196,14 @@ void LoadSave(const char* path)
StatusReg = 0x00;
}
void RelocateSave(const char* path)
void RelocateSave(const char* path, bool write)
{
if (!write)
{
LoadSave(path); // lazy
return;
}
strncpy(SRAMPath, path, 1023);
SRAMPath[1023] = '\0';
@ -1143,10 +1149,10 @@ bool LoadROM(const char* path, const char* sram, bool direct)
return true;
}
void RelocateSave(const char* path)
void RelocateSave(const char* path, bool write)
{
// herp derp
NDSCart_SRAM::RelocateSave(path);
NDSCart_SRAM::RelocateSave(path, write);
}
void ReadROM(u32 addr, u32 len, u32 offset)