fix dumping roms from dspspy

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4009 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-08-16 18:45:34 +00:00
parent 3124aa803c
commit 5d0ad965d7
1 changed files with 3 additions and 3 deletions

View File

@ -218,12 +218,12 @@ void DumpDSP_ROMs(const u16* rom, const u16* coef)
FILE *fROM = fopen(filename, "wb"); FILE *fROM = fopen(filename, "wb");
sprintf(filename, "sd:/dsp_coef.bin"); sprintf(filename, "sd:/dsp_coef.bin");
FILE *fCOEF = fopen(filename, "wb"); 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); fclose(fROM);
fwrite(coef, 0x2000, 1, fCOEF); fwrite(MEM_PHYSICAL_TO_K0(coef), 0x1000, 1, fCOEF);
fclose(fCOEF); fclose(fCOEF);
UpdateLastMessage("DSP ROMs dumped to SD"); UpdateLastMessage("DSP ROMs dumped to SD");
} }