From 507990a3504b2d61100ad29efc434f0adf003f83 Mon Sep 17 00:00:00 2001 From: Bart Trzynadlowski Date: Sat, 19 Aug 2017 19:27:58 +0000 Subject: [PATCH] Fixed up memory region dumping code to use the new Util::FlipEndian functions --- Src/Model3/Model3.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Src/Model3/Model3.cpp b/Src/Model3/Model3.cpp index c4ac180..ff5aa4c 100644 --- a/Src/Model3/Model3.cpp +++ b/Src/Model3/Model3.cpp @@ -2877,9 +2877,9 @@ static void Dump(const char *file, uint8_t *buf, size_t size, bool reverse32, bo if (NULL != fp) { if (reverse32) - Reverse32(buf, size); + Util::FlipEndian32(buf, size); else if (reverse16) - Reverse16(buf, size); + Util::FlipEndian16(buf, size); fwrite(buf, sizeof(UINT8), size, fp); fclose(fp); printf("dumped %s\n", file); @@ -2891,15 +2891,13 @@ static void Dump(const char *file, uint8_t *buf, size_t size, bool reverse32, bo CModel3::~CModel3(void) { - /* // Debug: dump some files //Dump("ram", ram, 0x800000, true, false); //Dump("vrom", vrom, 0x4000000, true, false); - Dump("crom", crom, 0x800000, true, false); + //Dump("crom", crom, 0x800000, true, false); //Dump("bankedCrom", &crom[0x800000], 0x7000000, true, false); //Dump("soundROM", soundROM, 0x80000, false, true); - //Dump("sampleROM", sampleROM, 0x800000, false, true); - */ + //Dump("sampleROM", sampleROM, 0x800000, false, true); // Stop all threads StopThreads();