rodecomp/Source/UI/Quest/UIRenewQuestUI.cpp
ragnarok-clanker a65a4a693c Decompile 31 functions in Source/UI/Quest/UIRecommendedQuestInfo.cpp, Source/UI/Quest/UIRecommendedQuestInfo.h, ...
Batch #3139 by eAthena: 31 byte-identical, 0 confirmed by peer review.

- fn_16347 RecommendedQuestInfo::CUIQuestInfo::Paint: byte-identical
- fn_16348 RecommendedQuestInfo::CUIQuestInfo::Slot16: byte-identical
- fn_16371 EncryptedName<6,-2256042663>::Text: byte-identical
- fn_16372 EncryptedName<6,-345941617>::Text: byte-identical
- fn_16373 EncryptedName<6,-637700863>::Text: byte-identical
- fn_16374 EncryptedName<6,3816779081>::Text: byte-identical
- fn_16375 EncryptedName<6,2373426571>::Text: byte-identical
- fn_16376 EncryptedName<44,-145500701>::Text: byte-identical
- fn_16377 EncryptedName<44,-3067397675>::Text: byte-identical
- fn_16378 EncryptedName<45,-1920094293>::Text: byte-identical
- fn_16379 EncryptedName<45,-776212621>::Text: byte-identical
- fn_16380 EncryptedName<45,-840734273>::Text: byte-identical
- fn_16381 EncryptedName<45,691239909>::Text: byte-identical
- fn_16382 EncryptedName<45,2940555023>::Text: byte-identical
- fn_16383 EncryptedName<45,2943309277>::Text: byte-identical
- fn_16384 EncryptedName<46,528735647>::Text: byte-identical
- fn_16385 EncryptedName<46,625053621>::Text: byte-identical
- fn_16386 EncryptedName<47,-1681274473>::Text: byte-identical
- fn_16387 EncryptedName<47,-305036319>::Text: byte-identical
- fn_16388 EncryptedName<47,-3189681897>::Text: byte-identical
- fn_16389 EncryptedName<47,4191418673>::Text: byte-identical
- fn_16390 EncryptedName<47,4048905011>::Text: byte-identical
- fn_16391 EncryptedName<47,793368363>::Text: byte-identical
- fn_16392 EncryptedName<47,2602538455>::Text: byte-identical
- fn_16393 EncryptedName<48,366074831>::Text: byte-identical
- fn_16394 EncryptedName<48,1968651585>::Text: byte-identical
- fn_16395 EncryptedName<48,738045265>::Text: byte-identical
- fn_16396 EncryptedName<49,559250749>::Text: byte-identical
- fn_16397 EncryptedName<50,-1519035521>::Text: byte-identical
- fn_16398 EncryptedName<51,-1617713881>::Text: byte-identical
- fn_16399 EncryptedName<52,-1582858407>::Text: byte-identical

Merged automatically: every function is byte-identical to the original.
Adds to the build: Source/UI/Quest/UIRecommendedQuestInfo.cpp, Source/UI/Quest/UIRenewQuestUI.cpp
2026-10-29 20:35:09 +00:00

407 lines
9.6 KiB
C++

#include "Utility/Cipher/XorBytes.h"
#include <cstddef>
#include <cstdint>
template <std::size_t Length, std::uint64_t Key>
class EncryptedName {
public:
explicit EncryptedName(const std::uint8_t (&source)[Length]) : m_encrypted(true) {
for (std::uint64_t index = 0; index < Length; ++index) {
this->m_text[index] = source[index];
}
}
~EncryptedName() {
for (std::uint64_t index = 0; index < Length; ++index) {
this->m_text[index] = 0;
}
}
const char* Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, Length, Key);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
private:
/* 0000 */ std::uint8_t m_text[Length];
bool m_encrypted;
};
// OFFSET: 0x00A59FE0
// FUNCTION: fn_16371
template <>
const char* EncryptedName<6, 0xE33F2FF779878559ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 6, 0xE33F2FF779878559ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A010
// FUNCTION: fn_16372
template <>
const char* EncryptedName<6, 0xC70319B5EB61598FULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 6, 0xC70319B5EB61598FULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A040
// FUNCTION: fn_16373
template <>
const char* EncryptedName<6, 0xB7AFBD2FD9FD7501ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 6, 0xB7AFBD2FD9FD7501ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A070
// FUNCTION: fn_16374
template <>
const char* EncryptedName<6, 0x114901C7E37F6D49ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 6, 0x114901C7E37F6D49ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A0A0
// FUNCTION: fn_16375
template <>
const char* EncryptedName<6, 0x1767DDE18D779D8BULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 6, 0x1767DDE18D779D8BULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A0D0
// FUNCTION: fn_16376
template <>
const char* EncryptedName<44, 0xB3E307A5F753D5E3ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 44, 0xB3E307A5F753D5E3ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A100
// FUNCTION: fn_16377
template <>
const char* EncryptedName<44, 0xA597A7E7492B39D5ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 44, 0xA597A7E7492B39D5ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A130
// FUNCTION: fn_16378
template <>
const char* EncryptedName<45, 0xD5A78DB38D8DAFABULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 45, 0xD5A78DB38D8DAFABULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A160
// FUNCTION: fn_16379
template <>
const char* EncryptedName<45, 0xFFABE3D5D1BBEF73ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 45, 0xFFABE3D5D1BBEF73ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A190
// FUNCTION: fn_16380
template <>
const char* EncryptedName<45, 0xF15F8785CDE369BFULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 45, 0xF15F8785CDE369BFULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A1C0
// FUNCTION: fn_16381
template <>
const char* EncryptedName<45, 0x192D654D29337BE5ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 45, 0x192D654D29337BE5ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A1F0
// FUNCTION: fn_16382
template <>
const char* EncryptedName<45, 0x0399459DAF454F0FULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 45, 0x0399459DAF454F0FULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A220
// FUNCTION: fn_16383
template <>
const char* EncryptedName<45, 0x79E915E9AF6F55DDULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 45, 0x79E915E9AF6F55DDULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A250
// FUNCTION: fn_16384
template <>
const char* EncryptedName<46, 0x271B45771F83DD9FULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 46, 0x271B45771F83DD9FULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A280
// FUNCTION: fn_16385
template <>
const char* EncryptedName<46, 0x792FFD1325418FB5ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 46, 0x792FFD1325418FB5ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A2B0
// FUNCTION: fn_16386
template <>
const char* EncryptedName<47, 0xC5B1BBCD9BC9C997ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 47, 0xC5B1BBCD9BC9C997ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A2E0
// FUNCTION: fn_16387
template <>
const char* EncryptedName<47, 0xC1BB8111EDD183E1ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 47, 0xC1BB8111EDD183E1ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A310
// FUNCTION: fn_16388
template <>
const char* EncryptedName<47, 0x8783C33941E15117ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 47, 0x8783C33941E15117ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A340
// FUNCTION: fn_16389
template <>
const char* EncryptedName<47, 0x01CB4F1DF9D3F931ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 47, 0x01CB4F1DF9D3F931ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A370
// FUNCTION: fn_16390
template <>
const char* EncryptedName<47, 0x49D33529F1556333ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 47, 0x49D33529F1556333ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A3A0
// FUNCTION: fn_16391
template <>
const char* EncryptedName<47, 0x0B23D10F2F49D72BULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 47, 0x0B23D10F2F49D72BULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A3D0
// FUNCTION: fn_16392
template <>
const char* EncryptedName<47, 0x0B8745519B1F95D7ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 47, 0x0B8745519B1F95D7ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A400
// FUNCTION: fn_16393
template <>
const char* EncryptedName<48, 0x136F2F9915D1DBCFULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 48, 0x136F2F9915D1DBCFULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A430
// FUNCTION: fn_16394
template <>
const char* EncryptedName<48, 0x674D9F3975573D41ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 48, 0x674D9F3975573D41ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A460
// FUNCTION: fn_16395
template <>
const char* EncryptedName<48, 0x6BDF334F2BFDAD51ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 48, 0x6BDF334F2BFDAD51ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A490
// FUNCTION: fn_16396
template <>
const char* EncryptedName<49, 0x659975C121557D3DULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 49, 0x659975C121557D3DULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A4C0
// FUNCTION: fn_16397
template <>
const char* EncryptedName<50, 0x85E1F5A7A5755B7FULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 50, 0x85E1F5A7A5755B7FULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A4F0
// FUNCTION: fn_16398
template <>
const char* EncryptedName<51, 0xAD6153019F93A527ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 51, 0xAD6153019F93A527ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A520
// FUNCTION: fn_16399
template <>
const char* EncryptedName<52, 0xBFF5C517A1A77F59ULL>::Text() {
if (this->m_encrypted) {
utility::XorBytes(this->m_text, 52, 0xBFF5C517A1A77F59ULL);
this->m_encrypted = false;
}
return reinterpret_cast<const char*>(this->m_text);
}
// OFFSET: 0x00A5A550
// OFFSET: 0x00A5A620
// OFFSET: 0x00A5A700
// OFFSET: 0x00A5A7F0
// OFFSET: 0x00A5A8D0
// OFFSET: 0x00A5A9B0
// OFFSET: 0x00A5AA80
// OFFSET: 0x00A5AB70
// OFFSET: 0x00A5AC50
// OFFSET: 0x00A5AD40
// OFFSET: 0x00A5AE30
// OFFSET: 0x00A5AF00
// OFFSET: 0x00A5AFF0