some HLE LLE stuff :)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@837 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
fires.gc
2008-10-11 08:43:50 +00:00
parent 4d93e126de
commit f9bd977ffd
15 changed files with 146 additions and 66 deletions

View File

@ -23,9 +23,11 @@
#include "gdsp_interpreter.h"
bool DumpDSPCode(uint32 _Address, uint32 _Length)
bool DumpDSPCode(uint32 _Address, uint32 _Length, uint32 crc)
{
FILE* pFile = fopen("d:\\DSP_UCode.bin", "wb");
char szFilename[MAX_PATH];
sprintf(szFilename, "c:\\_\\DSP_UC_%08X.bin", crc);
FILE* pFile = fopen(szFilename, "wb");
if (pFile != NULL)
{
@ -33,6 +35,10 @@ bool DumpDSPCode(uint32 _Address, uint32 _Length)
fclose(pFile);
return(true);
}
else
{
PanicAlert("Cant open file (%s) to dump UCode!!", szFilename);
}
return(false);
}