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).
This commit is contained in:
parent
100bfd3cf7
commit
742bce32ca
1 changed files with 5 additions and 4 deletions
|
|
@ -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<RenderCommand*>& commands, RenderQueues& queues, bool depthAlpha, float depthStart, float depthEnd) {
|
||||
__forceinline void Submit(std::vector<RenderCommand*>& commands) {
|
||||
for (RenderCommand* command : commands) {
|
||||
queues.Submit(command, 513, depthAlpha, depthStart, depthEnd);
|
||||
static_cast<CRendererDX9*>(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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue