moved logs to log dir

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1268 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-11-23 09:14:40 +00:00
parent 09b6aaaf84
commit 3e7c80ab69
1 changed files with 4 additions and 3 deletions

View File

@ -703,10 +703,11 @@ void PPCTables::PrintInstructionRunCounts()
} }
} }
//TODO move to LogManager
void PPCTables::LogCompiledInstructions() void PPCTables::LogCompiledInstructions()
{ {
static int time = 0; static int time = 0;
FILE *f = fopen(StringFromFormat("inst_log%i.txt", time).c_str(), "w"); FILE *f = fopen(StringFromFormat(FULL_LOGS_DIR "inst_log%i.txt", time).c_str(), "w");
for (int i = 0; i < m_numInstructions; i++) for (int i = 0; i < m_numInstructions; i++)
{ {
if (m_allInstructions[i]->compileCount > 0) { if (m_allInstructions[i]->compileCount > 0) {
@ -714,7 +715,7 @@ void PPCTables::LogCompiledInstructions()
} }
} }
fclose(f); fclose(f);
f = fopen(StringFromFormat("inst_not%i.txt", time).c_str(), "w"); f = fopen(StringFromFormat(FULL_LOGS_DIR "inst_not%i.txt", time).c_str(), "w");
for (int i = 0; i < m_numInstructions; i++) for (int i = 0; i < m_numInstructions; i++)
{ {
if (m_allInstructions[i]->compileCount == 0) { if (m_allInstructions[i]->compileCount == 0) {
@ -722,7 +723,7 @@ void PPCTables::LogCompiledInstructions()
} }
} }
fclose(f); fclose(f);
f = fopen(StringFromFormat("mcrfs_at.txt", time).c_str(), "w"); f = fopen(StringFromFormat(FULL_LOGS_DIR "mcrfs_at.txt", time).c_str(), "w");
for (size_t i = 0; i < rsplocations.size(); i++) { for (size_t i = 0; i < rsplocations.size(); i++) {
fprintf(f, "mcrfs: %08x\n", rsplocations[i]); fprintf(f, "mcrfs: %08x\n", rsplocations[i]);
} }