Batch #5854 by Yommy: 1 byte-identical, 3 confirmed by peer review. - fn_22314 InputCharset::SetServicePrefix: logic confirmed by peer review - fn_22315 CLoginMode::ReceiveLoginErrorDetail: logic confirmed by peer review - fn_22316 CLoginMode::ReceiveLoginError: logic confirmed by peer review - fn_22319 CLoginMode::SubD9E170: byte-identical Peer-reviewed-by: ragnarok-clanker, superintelligence, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
32 lines
781 B
C++
32 lines
781 B
C++
#include "Client/Input/InputCharset.h"
|
|
#include "Utility/Text/LanguageCharset.h"
|
|
#include "Utility/Text/TextTokens.h"
|
|
|
|
#include <cstdio>
|
|
|
|
// OFFSET: 0x00ACE360
|
|
// FUNCTION: fn_17781
|
|
const char* InputCharset::Prefix(bool alternate) const {
|
|
// STATIC: 0x016D3964
|
|
// GLOBAL: gl_24373
|
|
static char prefix[8];
|
|
|
|
if (g_inlineCharset) {
|
|
std::sprintf(prefix, "|%02x", LanguageCharset(alternate ? this->alternateLanguage : this->language));
|
|
} else {
|
|
prefix[0] = '\0';
|
|
}
|
|
|
|
return prefix;
|
|
}
|
|
|
|
// INLINED
|
|
unsigned InputCharset::CodePage(unsigned fallback) const {
|
|
return g_inlineCharset ? LanguageCodePage(this->language) : fallback;
|
|
}
|
|
|
|
// OFFSET: 0x00D9CE80
|
|
// FUNCTION: fn_22314
|
|
void InputCharset::SetServicePrefix(std::string prefix) {
|
|
this->servicePrefix = prefix;
|
|
}
|