From 5d0ad965d70c4183af4abe681dfa1c5b2b003563 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sun, 16 Aug 2009 18:45:34 +0000 Subject: [PATCH] fix dumping roms from dspspy git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4009 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/DSPSpy/main_spy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/DSPSpy/main_spy.cpp b/Source/DSPSpy/main_spy.cpp index 3654a1ad7a..b077338baf 100644 --- a/Source/DSPSpy/main_spy.cpp +++ b/Source/DSPSpy/main_spy.cpp @@ -218,12 +218,12 @@ void DumpDSP_ROMs(const u16* rom, const u16* coef) FILE *fROM = fopen(filename, "wb"); sprintf(filename, "sd:/dsp_coef.bin"); FILE *fCOEF = fopen(filename, "wb"); - if (fROM && fCOEF) + if (fROM && fCOEF) { - fwrite(rom, 0x2000, 1, fROM); + fwrite(MEM_PHYSICAL_TO_K0(rom), 0x2000, 1, fROM); fclose(fROM); - fwrite(coef, 0x2000, 1, fCOEF); + fwrite(MEM_PHYSICAL_TO_K0(coef), 0x1000, 1, fCOEF); fclose(fCOEF); UpdateLastMessage("DSP ROMs dumped to SD"); }