mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
Fixed issue #221, and other minor changes.
This commit is contained in:
parent
38bd40891d
commit
5833d22fe0
3 changed files with 16 additions and 15 deletions
|
|
@ -68,24 +68,23 @@ u32 FnIdGenerator::GenerateFnId(const std::string& func_name)
|
|||
|
||||
void FnIdGenerator::PrintId()
|
||||
{
|
||||
const std::string temp;
|
||||
TextInputDialog dial(0, temp, "Please input function name");
|
||||
TextInputDialog dial(0, "", "Please input function name");
|
||||
if (dial.ShowModal() == wxID_OK)
|
||||
{
|
||||
dial.GetResult();
|
||||
const std::string& func_name = dial.GetResult();
|
||||
|
||||
if (func_name.length() == 0)
|
||||
return;
|
||||
|
||||
const be_t<u32> result = GenerateFnId(func_name);
|
||||
m_func_name.push_back(func_name);
|
||||
m_func_id.push_back(result);
|
||||
|
||||
ConLog.Write("Function: %s, Id: 0x%08x ", func_name.c_str(), result);
|
||||
UpdateInformation();
|
||||
}
|
||||
|
||||
const std::string& func_name = dial.GetResult();
|
||||
|
||||
if (func_name.length() == 0)
|
||||
return;
|
||||
|
||||
const be_t<u32> result = GenerateFnId(func_name);
|
||||
m_func_name.push_back(func_name);
|
||||
m_func_id.push_back(result);
|
||||
|
||||
ConLog.Write("Function: %s, Id: 0x%08x ", func_name.c_str(), result);
|
||||
UpdateInformation();
|
||||
return;
|
||||
}
|
||||
|
||||
void FnIdGenerator::UpdateInformation()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue