From 0f0e04bfa3b26cf12bf2f07d0982144893a9aee3 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Sun, 30 Dec 2018 20:57:20 +0100 Subject: init savemem to 0xFF instead of 0x00. --- src/NDSCart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp index c959663..726b2f8 100644 --- a/src/NDSCart.cpp +++ b/src/NDSCart.cpp @@ -141,7 +141,7 @@ void LoadSave(const char* path, u32 type) if (SRAMLength) { SRAM = new u8[SRAMLength]; - memset(SRAM, 0, SRAMLength); + memset(SRAM, 0xFF, SRAMLength); } } -- cgit v1.2.3