Decompile fn_12943 (UINormalMB::SendMsg)
Batch #16085 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_12943 UINormalMB::SendMsg: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
a8cf557b2d
commit
17dfcd673e
1 changed files with 3 additions and 4 deletions
|
|
@ -30,18 +30,17 @@ void UINormalMB::Paint() {
|
|||
int UINormalMB::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) {
|
||||
switch (message) {
|
||||
case UM_COMMAND: {
|
||||
const int id = static_cast<int>(a);
|
||||
const auto action = this->m_actions.find(id);
|
||||
const auto action = this->m_actions.find(a);
|
||||
|
||||
if (action != this->m_actions.end()) {
|
||||
action->second();
|
||||
} else {
|
||||
if (this->m_owner) {
|
||||
this->m_owner->SendMsg(this, UM_COMMAND, 488, id, 0, 0);
|
||||
this->m_owner->SendMsg(this, UM_COMMAND, 488, a, 0, 0);
|
||||
}
|
||||
|
||||
if (this->m_keepOpen) {
|
||||
g_windowMgr.modalResponse = id;
|
||||
g_windowMgr.modalResponse = a;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue