Generate Symbols From menu added
This commit is contained in:
parent
c5cc781205
commit
5b88782e30
|
@ -177,6 +177,11 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
|
|||
Host_NotifyMapLoaded();
|
||||
break;
|
||||
case IDM_SCAN_FUNCTIONS:
|
||||
PPCAnalyst::FindFunctions(0x80000000, 0x81800000, &g_symbolDB);
|
||||
// Update GUI
|
||||
NotifyMapLoaded();
|
||||
break;
|
||||
case IDM_SCAN_SIGNATURES:
|
||||
{
|
||||
PPCAnalyst::FindFunctions(0x80000000, 0x81800000, &g_symbolDB);
|
||||
SignatureDB db;
|
||||
|
@ -190,7 +195,6 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
|
|||
{
|
||||
Parent->StatusBarMessage("'%s' not found, no symbol names generated", TOTALDB);
|
||||
}
|
||||
// HLE::PatchFunctions();
|
||||
// Update GUI
|
||||
NotifyMapLoaded();
|
||||
break;
|
||||
|
|
|
@ -231,6 +231,7 @@ void CFrame::BindDebuggerMenuBarUpdateEvents()
|
|||
Bind(wxEVT_UPDATE_UI, &WxEventUtils::OnEnableIfCoreInitialized, IDM_SEARCH_INSTRUCTION);
|
||||
Bind(wxEVT_UPDATE_UI, &WxEventUtils::OnEnableIfCoreInitialized, IDM_CLEAR_SYMBOLS);
|
||||
Bind(wxEVT_UPDATE_UI, &WxEventUtils::OnEnableIfCoreInitialized, IDM_SCAN_FUNCTIONS);
|
||||
Bind(wxEVT_UPDATE_UI, &WxEventUtils::OnEnableIfCoreInitialized, IDM_SCAN_SIGNATURES);
|
||||
Bind(wxEVT_UPDATE_UI, &WxEventUtils::OnEnableIfCoreInitialized, IDM_LOAD_MAP_FILE);
|
||||
Bind(wxEVT_UPDATE_UI, &WxEventUtils::OnEnableIfCoreInitialized, IDM_SAVEMAPFILE);
|
||||
Bind(wxEVT_UPDATE_UI, &WxEventUtils::OnEnableIfCoreInitialized, IDM_LOAD_MAP_FILE_AS);
|
||||
|
|
|
@ -216,6 +216,7 @@ enum
|
|||
// Symbols
|
||||
IDM_CLEAR_SYMBOLS,
|
||||
IDM_SCAN_FUNCTIONS,
|
||||
IDM_SCAN_SIGNATURES,
|
||||
IDM_LOAD_MAP_FILE,
|
||||
IDM_LOAD_MAP_FILE_AS,
|
||||
IDM_LOAD_BAD_MAP_FILE,
|
||||
|
|
|
@ -416,9 +416,14 @@ wxMenu* MainMenuBar::CreateSymbolsMenu() const
|
|||
auto* const symbols_menu = new wxMenu;
|
||||
symbols_menu->Append(IDM_CLEAR_SYMBOLS, _("&Clear Symbols"),
|
||||
_("Remove names from all functions and variables."));
|
||||
symbols_menu->Append(IDM_SCAN_FUNCTIONS, _("&Generate Symbol Map"),
|
||||
_("Recognise standard functions from Sys/totaldb.dsy, and use generic zz_ "
|
||||
"names for other functions."));
|
||||
auto* const generate_symbols_menu = new wxMenu;
|
||||
generate_symbols_menu->Append(IDM_SCAN_FUNCTIONS, _("&Address"),
|
||||
_("Use generic zz_ names for functions."));
|
||||
generate_symbols_menu->Append(
|
||||
IDM_SCAN_SIGNATURES, _("&Signature Database"),
|
||||
_("Recognise standard functions from Sys/totaldb.dsy, and use generic zz_ "
|
||||
"names for other functions."));
|
||||
symbols_menu->AppendSubMenu(generate_symbols_menu, _("&Generate Symbols From"));
|
||||
symbols_menu->AppendSeparator();
|
||||
symbols_menu->Append(IDM_LOAD_MAP_FILE, _("&Load Symbol Map"),
|
||||
_("Try to load this game's function names automatically - but doesn't check "
|
||||
|
@ -457,7 +462,7 @@ wxMenu* MainMenuBar::CreateSymbolsMenu() const
|
|||
"two existing files. The first input file has priority."));
|
||||
symbols_menu->Append(
|
||||
IDM_USE_SIGNATURE_FILE, _("Apply Signat&ure File..."),
|
||||
_("Must use Generate Symbol Map first! Recognise names of any standard library functions "
|
||||
_("Must use Generate Symbols first! Recognise names of any standard library functions "
|
||||
"used in multiple games, by loading them from a .dsy file."));
|
||||
symbols_menu->AppendSeparator();
|
||||
symbols_menu->Append(IDM_PATCH_HLE_FUNCTIONS, _("&Patch HLE Functions"));
|
||||
|
|
Loading…
Reference in New Issue