No more sandwiches...

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2180 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2009-11-10 21:33:59 +00:00
parent 02d431a1c1
commit 9cc890987d
2 changed files with 21 additions and 14 deletions

View File

@ -105,8 +105,15 @@ namespace Implementations
// FIXME: Some of the trace logs will require recompiler resets to be activated properly.
// But since those haven't been implemented yet, no point in implementing that here either.
char* message;
const_cast<Pcsx2Config&>(EmuConfig).Trace.Enabled = !EmuConfig.Trace.Enabled;
GSprintf(10, EmuConfig.Trace.Enabled ? "Logging Enabled." : "Logging Disabled.");
if (EmuConfig.Trace.Enabled)
sprintf(message, "Logging Enabled.");
else
sprintf(message, "Logging Disabled.");
GSprintf(10, message);
}
void Sys_FreezeGS()

View File

@ -211,9 +211,9 @@ static __releaseinline void IopHwTraceLog( u32 addr, T val, const char* modestr
temp[(sizeof temp)-3] = '0' + (sizeof(T)*2);
if( const char* regname = _log_GetIopHwName<T>( addr, val ) )
PSXHW_LOG( temp, modestr, (sizeof T) * 8, regname, addr, val );
PSXHW_LOG( temp, modestr, (sizeof (T)) * 8, regname, addr, val );
else
PSXUnkHW_LOG( temp, modestr, (sizeof T) * 8, "Unknown", addr, val );
PSXUnkHW_LOG( temp, modestr, (sizeof (T)) * 8, "Unknown", addr, val );
}
}