random small fixes - fix debug builds, dump ucodes on PAD_BUTTON_X, get rid of a never-closed FILE*

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3959 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman
2009-08-11 00:35:07 +00:00
parent 13a901146f
commit 5be34cd7e5
3 changed files with 12 additions and 13 deletions

View File

@ -108,24 +108,23 @@ bool DolphinApp::OnInit()
#endif #endif
// Show CPU message // "ExtendedTrace" looks freakin dangerous!!!
#ifdef _WIN32 #ifdef _WIN32
EXTENDEDTRACEINITIALIZE("."); EXTENDEDTRACEINITIALIZE(".");
SetUnhandledExceptionFilter(&MyUnhandledExceptionFilter); SetUnhandledExceptionFilter(&MyUnhandledExceptionFilter);
#endif #endif
// TODO: if First Boot // TODO: if First Boot
if (!cpu_info.bSSE2) if (!cpu_info.bSSE2)
{ {
PanicAlert("Hi,\n\nDolphin requires that your CPU has support for SSE2 extensions.\n" PanicAlert("Hi,\n\nDolphin requires that your CPU has support for SSE2 extensions.\n"
"Unfortunately your CPU does not support them, so Dolphin will not run.\n\n" "Unfortunately your CPU does not support them, so Dolphin will not run.\n\n"
"Sayonara!\n"); "Sayonara!\n");
return false; return false;
} }
#ifndef __APPLE__ #ifndef __APPLE__
// Keep the user config dir free unless user wants to save the working dir // Keep the user config dir free unless user wants to save the working dir
FILE* noCheckForInstallDir = fopen(FULL_CONFIG_DIR "portable", "r"); if (File::Exists(FULL_CONFIG_DIR "portable"))
if (!noCheckForInstallDir)
{ {
char tmp[1024]; char tmp[1024];
sprintf(tmp, "%s/.dolphin%swd", (const char*)wxStandardPaths::Get().GetUserConfigDir().mb_str(), sprintf(tmp, "%s/.dolphin%swd", (const char*)wxStandardPaths::Get().GetUserConfigDir().mb_str(),

View File

@ -258,7 +258,7 @@ static void Decode()
break; break;
case GX_CMD_UNKNOWN_METRICS: // zelda 4 swords calls it and checks the metrics registers after that case GX_CMD_UNKNOWN_METRICS: // zelda 4 swords calls it and checks the metrics registers after that
DEBUG_LOG(VIDEO, "GX 0x44: %08x", Cmd); DEBUG_LOG(VIDEO, "GX 0x44: %08x", cmd_byte);
break; break;
case GX_CMD_INVL_VC: // Invalidate Vertex Cache case GX_CMD_INVL_VC: // Invalidate Vertex Cache

View File

@ -631,7 +631,7 @@ int main()
#ifdef HW_RVL #ifdef HW_RVL
// Probably could offer to save to sd gecko or something on gc... // Probably could offer to save to sd gecko or something on gc...
// The future is web-based reporting ;) // The future is web-based reporting ;)
if (WPAD_ButtonsDown(0) & WPAD_BUTTON_2) if ((WPAD_ButtonsDown(0) & WPAD_BUTTON_2) || (PAD_ButtonsDown(0) & PAD_BUTTON_X))
{ {
dump_all_ucodes(); dump_all_ucodes();
} }