summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-07-24 21:46:46 -0400
committerLioncash <mathew1800@gmail.com>2014-08-02 13:49:51 -0400
commit0ed29e1fac94db18451a233e252976b4201bae24 (patch)
tree593bc569fe0c41f75eb2404e3110520e518c0bae /Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp
parenta723fd39df40515fe87cdc1ac4ac9bde9f920b40 (diff)
DolphinWX: Use a regular wxMessageBox instead of a PanicAlert for non-panic errors.
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp')
-rw-r--r--Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp b/Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp
index edee4fac64..fe706d0fd5 100644
--- a/Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp
+++ b/Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp
@@ -23,6 +23,7 @@
#include "Common/IniFile.h"
#include "Core/ConfigManager.h"
#include "Core/CoreParameter.h"
+#include "DolphinWX/WxUtils.h"
#include "DolphinWX/Debugger/DebuggerPanel.h"
#include "VideoCommon/Debugger.h"
#include "VideoCommon/TextureCacheBase.h"
@@ -288,42 +289,42 @@ void GFXDebuggerPanel::OnDumpButton(wxCommandEvent& event)
case 2: // Pixel Shader Constants
DumpPixelShaderConstants(dump_path);
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
break;
case 3: // Vertex Shader Constants
DumpVertexShaderConstants(dump_path);
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
break;
case 4: // Textures
DumpTextures(dump_path);
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
break;
case 5: // Frame Buffer
DumpFrameBuffer(dump_path);
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
break;
case 6: // Geometry
DumpGeometry(dump_path);
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
break;
case 7: // Vertex Description
DumpVertexDecl(dump_path);
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
break;
case 8: // Vertex Matrices
DumpMatrices(dump_path);
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
break;
case 9: // Statistics
DumpStats(dump_path);
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
break;
}
}
@@ -337,7 +338,7 @@ void GFXDebuggerPanel::OnContButton(wxCommandEvent& event)
void GFXDebuggerPanel::OnClearScreenButton(wxCommandEvent& event)
{
// TODO
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
}
void GFXDebuggerPanel::OnClearTextureCacheButton(wxCommandEvent& event)
@@ -348,17 +349,17 @@ void GFXDebuggerPanel::OnClearTextureCacheButton(wxCommandEvent& event)
void GFXDebuggerPanel::OnClearVertexShaderCacheButton(wxCommandEvent& event)
{
// TODO
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
}
void GFXDebuggerPanel::OnClearPixelShaderCacheButton(wxCommandEvent& event)
{
// TODO
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
}
void GFXDebuggerPanel::OnUpdateScreenButton(wxCommandEvent& event)
{
- wxMessageBox(_("Not implemented"), _("Error"), wxOK);
+ WxUtils::ShowErrorDialog(_("Not implemented"));
GFXDebuggerUpdateScreen();
}