Decompile fn_23798 (CSession::GetOptionFloat)
Batch #4598 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_23798 CSession::GetOptionFloat: logic confirmed by peer review Peer-reviewed-by: youko, Snow 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
5d6760e642
commit
d9878c9459
2 changed files with 10 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include "Contents/Configuration/ScriptOptions.h"
|
||||
#include "Script/LuaScript.h"
|
||||
#include "Utility/GuidParse.h"
|
||||
|
||||
#include "Client/Session.h"
|
||||
#include <cstring>
|
||||
|
||||
// OFFSET: 0x00E0A890
|
||||
|
|
@ -36,3 +36,11 @@ GUID ScriptOptions::Guid(const char* key, const GUID& fallback) {
|
|||
|
||||
return fallback;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E0A670
|
||||
// FUNCTION: fn_23798
|
||||
float CSession::GetOptionFloat(const char* key, float fallback) {
|
||||
double value = -1.0;
|
||||
this->m_hotkeyScript->Call("l_GetOptionValue", "s>l", key, &value);
|
||||
return value == -1.0 ? fallback : static_cast<float>(value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue