diff --git a/rpcs3/Gui/FnIdGenerator.cpp b/rpcs3/Gui/FnIdGenerator.cpp index 667872c581..e94aa348be 100644 --- a/rpcs3/Gui/FnIdGenerator.cpp +++ b/rpcs3/Gui/FnIdGenerator.cpp @@ -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 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 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() diff --git a/rpcs3/Gui/FnIdGenerator.h b/rpcs3/Gui/FnIdGenerator.h index e745e9ddd0..c2fd448510 100644 --- a/rpcs3/Gui/FnIdGenerator.h +++ b/rpcs3/Gui/FnIdGenerator.h @@ -1,3 +1,5 @@ +#pragma once + #include "TextInputDialog.h" #include "../Crypto/aes.h" #include "../Crypto/sha1.h" diff --git a/rpcs3/Gui/FrameBase.h b/rpcs3/Gui/FrameBase.h index 5e601d6aee..64a1288e4c 100644 --- a/rpcs3/Gui/FrameBase.h +++ b/rpcs3/Gui/FrameBase.h @@ -25,7 +25,7 @@ protected: Bind(wxEVT_CLOSE_WINDOW, &FrameBase::OnClose, this); Bind(wxEVT_MOVE, &FrameBase::OnMove, this); - Bind(wxEVT_SIZE, &FrameBase::OnSize, this); + Bind(wxEVT_SIZE, &FrameBase::OnResize, this); } ~FrameBase()