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