From beb36752e6820962cc9d89f475a449282cd524e9 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 23:45:06 +0000 Subject: [PATCH] Decompile fn_04827 (GPakEx::BlockCipher::AdvancedProcessBlocks) Batch #11330 by dori: 1 byte-identical, 0 confirmed by peer review. - fn_04827 GPakEx::BlockCipher::AdvancedProcessBlocks: byte-identical (annotation added to existing code) Merged automatically: every function is byte-identical to the original. --- Source/Archive/GPak.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Archive/GPak.cpp b/Source/Archive/GPak.cpp index e3135fab..e299ee1f 100644 --- a/Source/Archive/GPak.cpp +++ b/Source/Archive/GPak.cpp @@ -1960,7 +1960,7 @@ namespace GPakEx { virtual void ProcessAndXorBlock(const std::uint8_t* input, const std::uint8_t* xorBlock, std::uint8_t* output) const = 0; virtual std::size_t AdvancedProcessBlocks(const std::uint8_t* input, const std::uint8_t* xorBlock, std::uint8_t* output, std::size_t length, std::uint32_t flags) const; - enum Flags : std::uint32_t { InPlace = 1, Increment = 2, Reverse = 4 }; + enum Flags : std::uint32_t { InPlace = 1, Reverse = 2, Increment = 4 }; }; // OFFSET: 0x00642A60 @@ -2019,6 +2019,8 @@ namespace GPakEx { } // OFFSET: 0x00642B80 + // OFFSET: 0x00642B80 + // FUNCTION: fn_04827 std::size_t BlockCipher::AdvancedProcessBlocks(const std::uint8_t* input, const std::uint8_t* xorBlock, std::uint8_t* output, std::size_t length, std::uint32_t flags) const { const std::size_t blockSize = this->BlockSize(); std::ptrdiff_t step = static_cast(blockSize);