* Fix a bug that prevented devel/verbose console logs from being logged in Release builds.

* Switch microVU's cache logs to DevCon (verbose only).  TODO: Make a vuPerfLog for them someday.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3841 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2010-09-26 17:41:57 +00:00
parent 666d800d83
commit c396684e07
2 changed files with 3 additions and 6 deletions

View File

@ -55,11 +55,8 @@ void Console_SetActiveHandler( const IConsoleWriter& writer, FILE* flushfp )
writer.DoWriteLn( ConsoleBuffer_Get() );
}
const_cast<IConsoleWriter&>(Console)= writer;
#ifdef PCSX2_DEVBUILD
const_cast<IConsoleWriter&>(DevCon) = writer;
#endif
const_cast<IConsoleWriter&>(Console) = writer;
const_cast<IConsoleWriter&>(DevConWriter) = writer;
#ifdef PCSX2_DEBUG
const_cast<IConsoleWriter&>(DbgCon) = writer;

View File

@ -247,7 +247,7 @@ _mVUt __fi microProgram* mVUcreateProg(int startPC) {
double cacheSize = (double)((u32)mVU->prog.x86end - (u32)mVU->prog.x86start);
double cacheUsed =((double)((u32)mVU->prog.x86ptr - (u32)mVU->prog.x86start)) / cacheSize * 100;
ConsoleColors c = vuIndex ? Color_Orange : Color_Magenta;
Console.WriteLn(c, "microVU%d: Cached MicroPrograms = [%03d] [PC=%04x] [List=%02d] (Cache = %3.3f%%)",
DevCon.WriteLn(c, "microVU%d: Cached MicroPrograms = [%03d] [PC=%04x] [List=%02d] (Cache = %3.3f%%)",
vuIndex, prog->idx, startPC, mVU->prog.prog[startPC]->size()+1, cacheUsed);
return prog;
}