Decompile 2 functions in Source/Contents/ClientState.cpp, Source/Contents/ClientState.h, ...
Batch #1835 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_24222 CSession::SetHomunculusAutoFeed: logic confirmed by peer review - fn_24223 CSession::SetPetAutoFeed: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
75bc9ea504
commit
f05827650a
3 changed files with 40 additions and 1 deletions
|
|
@ -1,9 +1,40 @@
|
|||
#include "Contents/ClientState.h"
|
||||
|
||||
#include "Client/Session.h"
|
||||
#include "Contents/MessageTable.h"
|
||||
#include "UI/Window/UIWindow.h"
|
||||
#include "UI/Window/UIWindowMgr.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
// GLOBAL: gl_24492
|
||||
bool g_homunculusAutoFeed;
|
||||
|
||||
// GLOBAL: gl_24493
|
||||
bool g_petAutoFeed;
|
||||
|
||||
// OFFSET: 0x00E48930
|
||||
// FUNCTION: fn_24222
|
||||
void CSession::SetHomunculusAutoFeed(bool enabled) {
|
||||
int message;
|
||||
if (enabled == true) {
|
||||
this->m_homunculusAutoFeed = true;
|
||||
message = 3282;
|
||||
} else {
|
||||
g_homunculusAutoFeed = false;
|
||||
message = 3283;
|
||||
}
|
||||
|
||||
g_windowMgr.SendNotice(1, reinterpret_cast<std::intptr_t>(LookupMessage(message)), 0x64FFFF, 0, 0, 0);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E48980
|
||||
// FUNCTION: fn_24223
|
||||
void CSession::SetPetAutoFeed(bool enabled) {
|
||||
g_petAutoFeed = enabled == true;
|
||||
g_windowMgr.SendNotice(1, reinterpret_cast<std::intptr_t>(LookupMessage(enabled ? 2579 : 2580)), 0x64FFFF, 0, 0, 0);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E48B00
|
||||
// FUNCTION: fn_24225
|
||||
void CSession::CollectCardItems() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue