Decompile fn_23900 (EmotionHotkeys::HasChanges)
Batch #14863 by codeplay: 0 byte-identical, 1 confirmed by peer review. - fn_23900 EmotionHotkeys::HasChanges: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, ntrl, NYD, Stingor 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
c4986a6df3
commit
7caabd2fda
2 changed files with 7 additions and 1 deletions
|
|
@ -11,6 +11,8 @@
|
|||
#include <json/value.h>
|
||||
#include <io.h>
|
||||
|
||||
extern template bool std::_Traits_equal<std::char_traits<char>>(const char*, std::size_t, const char*, std::size_t) noexcept;
|
||||
|
||||
// OFFSET: 0x005BC230
|
||||
// FUNCTION: fn_03463
|
||||
void EmotionHotkeys::Load(Json::Value& data) {
|
||||
|
|
@ -29,8 +31,10 @@ void EmotionHotkeys::Load(Json::Value& data) {
|
|||
// FUNCTION: fn_23900
|
||||
bool EmotionHotkeys::HasChanges() const {
|
||||
if (!this->saved.empty()) {
|
||||
const std::string* current = this->current.data();
|
||||
const std::string* saved = this->saved.data();
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
if (this->saved[i] != this->current[i]) {
|
||||
if (saved[i] != current[i]) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
#include "Contents/Hotkeys/UserHotkeyScript.h"
|
||||
#include "Network/TextEncoding.h"
|
||||
|
||||
template bool std::_Traits_equal<std::char_traits<char>>(const char*, std::size_t, const char*, std::size_t) noexcept;
|
||||
|
||||
// OFFSET: 0x005F7D60
|
||||
// FUNCTION: fn_04055
|
||||
void ClearUserHotkeys() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue