diff --git a/include/RE/C/Console.h b/include/RE/C/Console.h index 643b5ee9c..2c0a19888 100644 --- a/include/RE/C/Console.h +++ b/include/RE/C/Console.h @@ -34,11 +34,23 @@ namespace RE void* opcode; // 30 std::uint64_t unk38; // 38 std::uint64_t unk40; // 40 - std::uint64_t unk48; // 48 - std::uint64_t unk50; // 50 +#ifdef SKYRIM_SUPPORT_AE + std::uint32_t unk48; // 48 + std::uint8_t unk4c; // 4c + bool showAchievementWarning; // 4d -- only used in ctor + bool ctrlKeyHeld; // 4e + std::uint8_t pad4f; // 4f +#else + std::uint64_t unk48; // 48 + std::uint64_t unk50; // 50 +#endif protected: void SetSelectedRef_Impl(ObjectRefHandle& a_handle); }; +#ifdef SKYRIM_SUPPORT_AE + static_assert(sizeof(Console) == 0x50); +#else static_assert(sizeof(Console) == 0x58); +#endif } diff --git a/include/RE/Offsets.h b/include/RE/Offsets.h index c81ba6a85..894d1d45f 100644 --- a/include/RE/Offsets.h +++ b/include/RE/Offsets.h @@ -171,7 +171,7 @@ namespace RE namespace Console { - inline constexpr REL::ID SelectedRef(static_cast(405935)); + inline constexpr REL::ID SelectedRef(static_cast(504099)); inline constexpr REL::ID SetSelectedRef(static_cast(51093)); }