Skip to content

Commit

Permalink
Merge pull request #94 from TESRSkywind/AE-1130_Console_Updates
Browse files Browse the repository at this point in the history
Console updates for 1130
  • Loading branch information
powerof3 authored Dec 16, 2023
2 parents 839607a + 6927cc7 commit cd81ae2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions include/RE/C/Console.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion include/RE/Offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ namespace RE

namespace Console
{
inline constexpr REL::ID SelectedRef(static_cast<std::uint64_t>(405935));
inline constexpr REL::ID SelectedRef(static_cast<std::uint64_t>(504099));
inline constexpr REL::ID SetSelectedRef(static_cast<std::uint64_t>(51093));
}

Expand Down

0 comments on commit cd81ae2

Please sign in to comment.