From 742bce32ca2e5c02d2baf7bd32dc6f72d405ee68 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 15:10:43 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Cooldowns/CooldownDrawing.cpp, Source/Render/DX9/RendererDX9.h Batch #13386 by Toshiro: 0 byte-identical, 2 confirmed by peer review. - fn_20962 CooldownDrawing::SubmitReverse: logic confirmed by peer review - fn_20963 CooldownDrawing::SubmitNormal: logic confirmed by peer review Peer-reviewed-by: Yommy, dori, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Cooldowns/CooldownDrawing.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/UI/Cooldowns/CooldownDrawing.cpp b/Source/UI/Cooldowns/CooldownDrawing.cpp index 58da466d..cf52fe25 100644 --- a/Source/UI/Cooldowns/CooldownDrawing.cpp +++ b/Source/UI/Cooldowns/CooldownDrawing.cpp @@ -1,14 +1,15 @@ #include "Render/Primitives/RenderCommandPool.h" #include "Render/Primitives/RenderQueues.h" #include "Render/Renderer.h" +#include "Render/DX9/RendererDX9.h" #include "Render/Textures/TextureCache.h" #include "UI/Cooldowns/CooldownDrawing.h" namespace { // INLINED - void Submit(std::vector& commands, RenderQueues& queues, bool depthAlpha, float depthStart, float depthEnd) { + __forceinline void Submit(std::vector& commands) { for (RenderCommand* command : commands) { - queues.Submit(command, 513, depthAlpha, depthStart, depthEnd); + static_cast(g_renderer)->Submit(command, 0x201); } commands.clear(); @@ -204,11 +205,11 @@ void CooldownDrawing::DrawReverse(CooldownState& value) { // OFFSET: 0x00CA6670 // FUNCTION: fn_20963 void CooldownDrawing::SubmitNormal(RenderQueues& queues, bool depthAlpha, float depthStart, float depthEnd) { - Submit(this->normal, queues, depthAlpha, depthStart, depthEnd); + Submit(this->normal); } // OFFSET: 0x00CA6630 // FUNCTION: fn_20962 void CooldownDrawing::SubmitReverse(RenderQueues& queues, bool depthAlpha, float depthStart, float depthEnd) { - Submit(this->reverse, queues, depthAlpha, depthStart, depthEnd); + Submit(this->reverse); }