Decompile 4 functions in Source/UI/UIMacroUserInfoWnd.cpp, Source/Contents/Hotkeys/UserHotkeyMgr.cpp, ...
Batch #13945 by KWDev: 4 byte-identical, 0 confirmed by peer review. - fn_09850 UIMacroReporterWnd::Slot25: byte-identical - fn_04058 CUserHotkeyMgr::TabAt: byte-identical - fn_21179 CGrannyCorpse3d::OnProcess: byte-identical - fn_18153 RegistryKey::Set: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
82e16cbb58
commit
de1045f3a3
4 changed files with 19 additions and 10 deletions
|
|
@ -3498,8 +3498,11 @@ bool CGrannyCorpse3d::OnProcess() {
|
|||
this->alpha = static_cast<unsigned char>(600 - tick);
|
||||
}
|
||||
|
||||
this->tick = tick + 1;
|
||||
return tick <= 600;
|
||||
if (this->tick++ > 600) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00CC7D50
|
||||
|
|
|
|||
|
|
@ -147,16 +147,19 @@ void CUserHotkeyMgr::Shutdown() {
|
|||
// OFFSET: 0x005F80A0
|
||||
// FUNCTION: fn_04058
|
||||
int CUserHotkeyMgr::TabAt(int position) const {
|
||||
int tab = 0;
|
||||
switch (position) {
|
||||
case 1:
|
||||
return 3;
|
||||
tab = 3;
|
||||
break;
|
||||
case 2:
|
||||
return 1;
|
||||
tab = 1;
|
||||
break;
|
||||
case 3:
|
||||
return 2;
|
||||
default:
|
||||
return 0;
|
||||
tab = 2;
|
||||
break;
|
||||
}
|
||||
return tab;
|
||||
}
|
||||
|
||||
// OFFSET: 0x005F88D0
|
||||
|
|
|
|||
|
|
@ -235,11 +235,11 @@ void UIMacroUserInfoWnd::Paint() {
|
|||
// OFFSET: 0x007F1160
|
||||
// FUNCTION: fn_09850
|
||||
void UIMacroReporterWnd::Slot25(int x, int y) {
|
||||
if (this->unknown_010C == 1 && y >= 18) {
|
||||
if (this->unknown_010C == 1 && y > 17) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (g_windowMgr.lastWindowId != this->geometry.id) {
|
||||
if (this->geometry.id != g_windowMgr.lastWindowId) {
|
||||
g_windowMgr.BringToFront(this->geometry.id);
|
||||
g_windowMgr.lastWindowId = this->geometry.id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,5 +26,8 @@ bool RegistryKey::Query(const char* name, DWORD expectedType, BYTE* data, DWORD
|
|||
// OFFSET: 0x00AED0C0
|
||||
// FUNCTION: fn_18153
|
||||
bool RegistryKey::Set(const char* name, DWORD type, const BYTE* data, DWORD size) {
|
||||
return this->handle != nullptr && RegSetValueExA(this->handle, name, 0, type, data, size) == ERROR_SUCCESS;
|
||||
if (this->handle != nullptr) {
|
||||
return RegSetValueExA(this->handle, name, 0, type, data, size) == ERROR_SUCCESS;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue