From 0fdaa5d3746c0ef34b5947e380c5da7194341e68 Mon Sep 17 00:00:00 2001 From: Mr-X-GTA <110748953+Mr-X-GTA@users.noreply.github.com> Date: Sun, 1 Sep 2024 21:40:43 +0200 Subject: [PATCH] Add InputMethodEditor (#188) --- classes.cpp | 1 + misc/InputMethodEditor.hpp | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 misc/InputMethodEditor.hpp diff --git a/classes.cpp b/classes.cpp index 78870d4..9024275 100644 --- a/classes.cpp +++ b/classes.cpp @@ -35,6 +35,7 @@ #include "game_files/CGameConfig.hpp" #include "game_files/GameDataHash.hpp" #include "misc/CTunables.hpp" +#include "misc/InputMethodEditor.hpp" #include "misc/vfx/TimecycleKeyframeData.hpp" #include "netsync/CProjectBaseSyncDataNode.hpp" #include "netsync/CProjectSyncTree.hpp" diff --git a/misc/InputMethodEditor.hpp b/misc/InputMethodEditor.hpp new file mode 100644 index 0000000..661584a --- /dev/null +++ b/misc/InputMethodEditor.hpp @@ -0,0 +1,16 @@ +#pragma once +#include + +#pragma pack(push, 8) +class InputMethodEditor +{ +public: + uint32_t m_count; //0x0000 + uint32_t m_selected_index; //0x0004 + char16_t m_composition_string[31]; //0x0008 + char16_t m_candidate_list[9][31]; //0x0046 + bool m_active; //0x0274 + char pad_0275[3]; //0x0275 +}; //Size: 0x0278 +static_assert(sizeof(InputMethodEditor) == 0x278); +#pragma pack(pop) \ No newline at end of file