Maintenance: Encrypted strings rewritten as OBFUSCATE_* (Utility/Cipher/Obfuscate.h); unit-local decrypt helpers removed where no cal

Batch #18596 by ragnarok-clanker: forced by an admin (0 lower score(s), 7 changed function(s)); checked with 8 compiled unit(s).
This commit is contained in:
ragnarok-clanker 2026-11-12 16:26:02 +00:00
commit d2e21e3ef0
8 changed files with 36 additions and 123 deletions

View file

@ -20,10 +20,7 @@
bool CSession::LoadMapNameTable() {
std::vector<char*> tokens;
CCommonObject& storage = reinterpret_cast<CCommonObject&>(this->minimapTokenStorage[0x30]);
constexpr auto sourceText = CRYPT_NAME("mapNameTable.txt", 0x17FB0F6BFF3BE93FULL);
const auto& source = sourceText.data;
thread_local EncryptedName<sizeof(source), 0x17FB0F6BFF3BE93FULL> name(source);
const bool loaded = storage.LoadTokens(tokens, name.Text(), 0);
const bool loaded = storage.LoadTokens(tokens, OBFUSCATE_TEXT("mapNameTable.txt", 0x17FB0F6BFF3BE93FULL), 0);
for (auto token = tokens.begin(); token != tokens.end(); token += 2) {
g_mapInfoMgr->AddMapDisplayName(token[0], token[1], false);