Small changes to DSP HLE. Still no sound in Wii AX. Blocks are turned on but something is wrong, it seems like cur_addr was not moving (in Top Spin 3), if I understand the log correctly.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1111 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson
2008-11-10 20:32:36 +00:00
parent 145d868585
commit fe19642762
13 changed files with 433 additions and 309 deletions

View File

@ -23,12 +23,14 @@
#ifdef _WIN32
#include <windows.h>
#endif
#include "../Debugger/Debugger.h"
extern CDebugger* m_frame;
// --------------------
// On and off
bool g_consoleEnable = true;
int gSaveFile = 0;
//int gSaveFile = 0;
#define DEBUG_HLE
@ -93,7 +95,7 @@ void startConsoleWin(int width, int height, char* fname)
int aprintf(int a, char *fmt, ...)
{
#if defined(DEBUG_HLE) && defined(_WIN32)
if(gSaveFile)
if(m_frame->gSaveFile)
{
char s[5000]; // WARNING: mind this value
va_list argptr;
@ -127,12 +129,12 @@ int aprintf(int a, char *fmt, ...)
int wprintf(char *fmt, ...)
{
#if defined(DEBUG_HLE) && defined(_WIN32)
char s[5000]; // WARNING: mind this value
char s[1024*20]; // Warning, mind this value
va_list argptr;
int cnt;
va_start(argptr, fmt);
cnt = vsnprintf(s, 5000, fmt, argptr);
cnt = vsnprintf(s, 1024*20, fmt, argptr);
va_end(argptr);
DWORD cCharsWritten;