[Glide64] Setup Tracing

This commit is contained in:
zilmar 2016-02-10 18:10:12 +11:00
parent c017515247
commit 38ce8a3c83
2 changed files with 4 additions and 0 deletions

View File

@ -1540,6 +1540,7 @@ void CALL PluginLoaded(void)
Set_texture_dir = FindSystemSettingId("Dir:Texture");
Set_log_flush = FindSystemSettingId("Log Auto Flush");
Set_log_dir = FindSystemSettingId("Dir:Log");
SetupTrace();
WriteTrace(TraceInterface, TraceDebug, "Start");

View File

@ -338,6 +338,7 @@ void microcheck()
g_settings->ucode = GetSetting(Set_ucode);
ReleaseGfx();
WriteTrace(TraceGlide64, TraceError, "uCode crc not found in INI, using currently selected uCode %08lx", (unsigned long)uc_crc);
#ifdef _WIN32
MessageBox(gfx.hWnd, stdstr_f("Error: uCode crc not found in INI, using currently selected uCode\n\n%08lx", uc_crc).c_str(), "Error", MB_OK | MB_ICONEXCLAMATION);
#endif
@ -349,6 +350,8 @@ void microcheck()
g_settings->ucode = GetSetting(Set_ucode);
ReleaseGfx();
WriteTrace(TraceGlide64, TraceError, "Unsupported uCode! crc: %08lx", (unsigned long)uc_crc);
#ifdef _WIN32
MessageBox(gfx.hWnd, stdstr_f("Error: Unsupported uCode!\n\ncrc: %08lx", uc_crc).c_str(), "Error", MB_OK | MB_ICONEXCLAMATION);
#endif