Decompile 2 functions in Source/Render/DeviceContext/DCSurface.cpp

Batch #13462 by SapitoSucio: 2 byte-identical, 0 confirmed by peer review.

- fn_24169 CSession::DefaultRenderBackend: byte-identical
- fn_24170 CSession::RenderSystemResetPolicy: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-06 17:57:21 +00:00
commit 63d5e78e62

View file

@ -133,7 +133,12 @@ std::uint32_t RenderSystemHolder::Width() const {
// OFFSET: 0x00E30A50
// FUNCTION: fn_24169
int CSession::DefaultRenderBackend() {
return std::max(this->m_hotkeyScript->GlobalInteger("RenderSystemDefault"), 0);
const int value = this->m_hotkeyScript->GlobalInteger("RenderSystemDefault");
int result = 0;
if (value > 0) {
result = value;
}
return result;
}
// OFFSET: 0x0056A6A0
@ -287,5 +292,10 @@ void CDCSurface::Dim(int, int, int, int, int) {
// OFFSET: 0x00E30A70
// FUNCTION: fn_24170
int CSession::RenderSystemResetPolicy() {
return std::max(this->m_hotkeyScript->GlobalInteger("RenderSystemReset"), 0);
const int value = this->m_hotkeyScript->GlobalInteger("RenderSystemReset");
int result = 0;
if (value > 0) {
result = value;
}
return result;
}