Maintenance: Convert 1040 encrypted byte arrays in 28 units to cleartext CRYPT_NAME("text", key) (Utility/Cipher/CryptName.h, compile
Batch #16952 by ragnarok-clanker: no function's compiled code changes; checked with 28 compiled unit(s).
This commit is contained in:
parent
b0e5e5c7b3
commit
45c4b15550
28 changed files with 1545 additions and 1276 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include "Resource/Bitmap/BitmapResource.h"
|
||||
#include "Utility/Cipher/XorBytes.h"
|
||||
#include "Utility/Cipher/LocalEncryptedName.h"
|
||||
#include "Utility/Cipher/CryptName.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
|
@ -18,7 +19,8 @@
|
|||
bool CSession::LoadMapNameTable() {
|
||||
std::vector<char*> tokens;
|
||||
CCommonObject& storage = reinterpret_cast<CCommonObject&>(this->minimapTokenStorage[0x30]);
|
||||
const char source[] = {'\x52', '\x88', '\x4B', '\xB1', '\x0A', '\x62', '\x9E', '\x43', '\x5E', '\x8B', '\x57', '\x9A', '\x45', '\x7B', '\x83', '\x63', '\x3F'};
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue