diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2009-11-18 21:11:05 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2009-11-18 21:11:05 +0000 |
| commit | 73af91281a6f47cf31ae9b7978a745769a9a40f2 (patch) | |
| tree | c06867036ff09ee275c728e8ec03b5d804cd84b3 /Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | |
| parent | 1a374ad62c5a20a9a02c4fe311de60e19e80d5c3 (diff) | |
allow dumping of all symbols to a signature file
*hopefully* fix the memleak when scrubbing wii discs.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4588 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp index b720cafd45..0f9d7d6551 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindowFunctions.cpp @@ -334,34 +334,42 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event) case IDM_CREATESIGNATUREFILE: { - wxTextEntryDialog input_prefix(this, wxString::FromAscii("Only export symbols with prefix:"), wxGetTextFromUserPromptStr, _T(".")); - if (input_prefix.ShowModal() == wxID_OK) { - std::string prefix(input_prefix.GetValue().mb_str()); + wxTextEntryDialog input_prefix( + this, + wxString::FromAscii("Only export symbols with prefix:\n(Blank for all symbols)"), + wxGetTextFromUserPromptStr, + wxEmptyString); - wxString path = wxFileSelector( + if (input_prefix.ShowModal() == wxID_OK) + { + std::string prefix(input_prefix.GetValue().mb_str()); + + wxString path = wxFileSelector( _T("Save signature as"), wxEmptyString, wxEmptyString, wxEmptyString, _T("Dolphin Signature File (*.dsy)|*.dsy;"), wxFD_SAVE, this); - if (! path.IsEmpty()) { - SignatureDB db; - db.Initialize(&g_symbolDB, prefix.c_str()); - std::string filename(path.mb_str()); // PPCAnalyst::SaveSignatureDB( - db.Save(path.mb_str()); + if (!path.IsEmpty()) + { + SignatureDB db; + db.Initialize(&g_symbolDB, prefix.c_str()); + std::string filename(path.mb_str()); + db.Save(path.mb_str()); + } } } - } break; case IDM_USESIGNATUREFILE: { - wxString path = wxFileSelector( + wxString path = wxFileSelector( _T("Apply signature file"), wxEmptyString, wxEmptyString, wxEmptyString, _T("Dolphin Signature File (*.dsy)|*.dsy;"), wxFD_OPEN | wxFD_FILE_MUST_EXIST, this); - if (! path.IsEmpty()) { - SignatureDB db; - db.Load(path.mb_str()); - db.Apply(&g_symbolDB); - } + if (!path.IsEmpty()) + { + SignatureDB db; + db.Load(path.mb_str()); + db.Apply(&g_symbolDB); + } } NotifyMapLoaded(); break; |
