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).
This commit is contained in:
ragnarok-clanker 2026-10-31 11:06:42 +00:00
commit 4eed4e91ca
2 changed files with 7 additions and 0 deletions

View file

@ -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) {

View file

@ -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);