Decompile 2 functions in Source/Contents/MessageTable.cpp, Source/Contents/MessageTable.h
Batch #1204 by ragnarok-clanker: 0 byte-identical, 2 confirmed by peer review. - fn_18375 IsObfuscatedMessage: logic confirmed by peer review - fn_18377 GetMessageString: logic confirmed by peer review Peer-reviewed-by: eAthena Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
6172cb5aa1
commit
f491ad1deb
1 changed files with 26 additions and 0 deletions
|
|
@ -183,5 +183,31 @@ int FindMessageId(const char* name) {
|
|||
// OFFSET: 0x00B00E40
|
||||
|
||||
// OFFSET: 0x00B00EC0
|
||||
// FUNCTION: fn_18375
|
||||
bool IsObfuscatedMessage(int id) {
|
||||
if (g_serviceType != 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (id) {
|
||||
case 2919549:
|
||||
case 2919550:
|
||||
case 2919551:
|
||||
case 2919552:
|
||||
case 2919554:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00B011B0
|
||||
// FUNCTION: fn_18377
|
||||
const char* GetMessageString(int id) {
|
||||
auto found = g_messageStrings.find(id);
|
||||
if (found == g_messageStrings.end()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
return found->second.c_str();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue