From 4eed4e91ca1dee37dc88976aef1f3e7c857bddb3 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 11:06:42 +0000 Subject: [PATCH] Decompile fn_04412 (Base64Decode) Batch #7654 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_04412 Base64Decode: logic confirmed by peer review Peer-reviewed-by: Yommy, secret Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Utility/Text/Base64.cpp | 6 ++++++ Source/Utility/Text/Base64.h | 1 + 2 files changed, 7 insertions(+) diff --git a/Source/Utility/Text/Base64.cpp b/Source/Utility/Text/Base64.cpp index 22e571e7..031d50af 100644 --- a/Source/Utility/Text/Base64.cpp +++ b/Source/Utility/Text/Base64.cpp @@ -81,6 +81,12 @@ std::string DecodeBase64(std::string encoded, bool removeLinebreaks) { return decoded; } +// OFFSET: 0x00619CF0 +// FUNCTION: fn_04412 +std::string Base64Decode(const std::string& encoded, bool removeLinebreaks) { + return DecodeBase64(encoded, removeLinebreaks); +} + // OFFSET: 0x00619D70 // FUNCTION: fn_04413 std::string EncodeBase64(const std::string& input, bool urlSafe) { diff --git a/Source/Utility/Text/Base64.h b/Source/Utility/Text/Base64.h index de5a1988..127c3ba4 100644 --- a/Source/Utility/Text/Base64.h +++ b/Source/Utility/Text/Base64.h @@ -5,6 +5,7 @@ std::string InsertLinebreaks(std::string text, unsigned int distance); std::string DecodeBase64(std::string encoded, bool removeLinebreaks = false); +std::string Base64Decode(const std::string& encoded, bool removeLinebreaks = false); std::string EncodeBase64(const std::string& input, bool urlSafe = false); std::string EncodeBase64(const unsigned char* input, unsigned int length, bool urlSafe = false);