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:
parent
9459db7c75
commit
63d5e78e62
1 changed files with 12 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue