From 23f69d5305e0e483af2257be973583111ef23cd1 Mon Sep 17 00:00:00 2001 From: powerof3 Date: Sat, 12 Oct 2024 21:18:17 +0000 Subject: [PATCH] maintenance --- include/RE/B/BGSSaveLoadManager.h | 122 +++++++++++++++--------------- src/RE/B/BGSSaveLoadManager.cpp | 12 +-- 2 files changed, 67 insertions(+), 67 deletions(-) diff --git a/include/RE/B/BGSSaveLoadManager.h b/include/RE/B/BGSSaveLoadManager.h index 1b8e42b0e..2b7873d05 100644 --- a/include/RE/B/BGSSaveLoadManager.h +++ b/include/RE/B/BGSSaveLoadManager.h @@ -94,12 +94,12 @@ namespace RE struct SaveEntry { - std::uint32_t characterID; // 00 - std::uint32_t isModded; // 04 - std::uint32_t manualSaveCount; // 08 - std::uint32_t autoSaveCount; // 0C - BSTHashMap autoSaves; // 18 - BSFixedString lastQuicksave; // 40 + std::uint32_t characterID; // 00 + std::uint32_t isModded; // 04 + std::uint32_t manualSaveCount; // 08 + std::uint32_t autoSaveCount; // 0C + BSTHashMap autoSaves; // 18 + BSFixedString lastQuicksave; // 40 }; static_assert(sizeof(SaveEntry) == 0x48); @@ -124,61 +124,61 @@ namespace RE bool PopulateSaveList(); // members - BSTHashMap characterIDNameMap; // 078 - std::uint64_t unk0A0; // 0A0 - std::uint32_t unk0A8; // 0A8 - std::uint32_t unk0AC; // 0AC - std::uint32_t unk0B0; // 0B0 - std::uint32_t unk0B4; // 0B4 - std::uint64_t unk0B8; // 0B8 - std::uint64_t unk0C0; // 0C0 - std::uint64_t unk0C8; // 0C8 - std::uint32_t currentCharacterID; // 0D0 - std::uint32_t currentCharacterModded; // 0D4 - std::uint32_t displayCharacterID; // 0D8 - std::uint32_t displayCharacterModded; // 0DC - std::uint32_t unk0E0; // 0E0 - std::uint32_t unk0E4; // 0E4 - BSTArray loadedEntries; // 0E8 - - BSTArray saveGameList; // 100 - std::uint8_t unk118; // 118 - std::uint8_t pad119; // 119 - std::uint16_t pad11A; // 11A - std::uint32_t saveCount; // 11C - std::uint8_t unk120; // 120 - std::uint8_t pad121; // 121 - std::uint16_t pad122; // 122 - std::uint32_t pad124; // 124 - std::uint64_t tickCount; // 128 - std::uint8_t unk130; // 130 - std::uint8_t pad131; // 131 - std::uint16_t pad132; // 132 - std::uint32_t pad134; // 134 - const char lastFileFullName[0x104]; // 138 - std::uint32_t pad23C; // 23C - BSFixedString lastFileName; // 240 - std::uint16_t lastFileNameLength; // 248 - std::uint16_t maxFileNameLength; // 24A - std::uint32_t unk24C; // 24C - std::int32_t unk250; // 250 - std::uint32_t pad254; // 254 - std::uint64_t unk258; // 258 - std::uint16_t unk260; // 260 - std::uint16_t unk262; // 262 - std::uint32_t unk264; // 264 - std::uint64_t unk268; // 268 - std::uint32_t unk270; // 270 - std::uint32_t unk274; // 274 - std::uint64_t unk278; // 278 - std::uint64_t unk280; // 280 - std::uint32_t unk288; // 288 - std::uint32_t unk28C; // 28C - std::uint64_t unk290; // 290 - std::uint64_t unk298; // 298 - std::uint32_t unk2A0; // 2A0 - std::uint32_t unk2A4; // 2A4 - std::uint64_t unk2A8; // 2A8 + BSTHashMap characterIDNameMap; // 078 + std::uint64_t unk0A0; // 0A0 + std::uint32_t unk0A8; // 0A8 + std::uint32_t unk0AC; // 0AC + std::uint32_t unk0B0; // 0B0 + std::uint32_t unk0B4; // 0B4 + std::uint64_t unk0B8; // 0B8 + std::uint64_t unk0C0; // 0C0 + std::uint64_t unk0C8; // 0C8 + std::uint32_t currentCharacterID; // 0D0 + std::uint32_t currentCharacterModded; // 0D4 + std::uint32_t displayCharacterID; // 0D8 + std::uint32_t displayCharacterModded; // 0DC + std::uint32_t unk0E0; // 0E0 + std::uint32_t unk0E4; // 0E4 + BSTArray loadedEntries; // 0E8 + + BSTArray saveGameList; // 100 + std::uint8_t unk118; // 118 + std::uint8_t pad119; // 119 + std::uint16_t pad11A; // 11A + std::uint32_t saveCount; // 11C + std::uint8_t unk120; // 120 + std::uint8_t pad121; // 121 + std::uint16_t pad122; // 122 + std::uint32_t pad124; // 124 + std::uint64_t tickCount; // 128 + std::uint8_t unk130; // 130 + std::uint8_t pad131; // 131 + std::uint16_t pad132; // 132 + std::uint32_t pad134; // 134 + const char lastFileFullName[0x104]; // 138 + std::uint32_t pad23C; // 23C + BSFixedString lastFileName; // 240 + std::uint16_t lastFileNameLength; // 248 + std::uint16_t maxFileNameLength; // 24A + std::uint32_t unk24C; // 24C + std::int32_t unk250; // 250 + std::uint32_t pad254; // 254 + std::uint64_t unk258; // 258 + std::uint16_t unk260; // 260 + std::uint16_t unk262; // 262 + std::uint32_t unk264; // 264 + std::uint64_t unk268; // 268 + std::uint32_t unk270; // 270 + std::uint32_t unk274; // 274 + std::uint64_t unk278; // 278 + std::uint64_t unk280; // 280 + std::uint32_t unk288; // 288 + std::uint32_t unk28C; // 28C + std::uint64_t unk290; // 290 + std::uint64_t unk298; // 298 + std::uint32_t unk2A0; // 2A0 + std::uint32_t unk2A4; // 2A4 + std::uint64_t unk2A8; // 2A8 #ifdef SKYRIM_SUPPORT_AE std::uint16_t unk2B0; // 2B0 std::uint16_t unk2B2; // 2B2 diff --git a/src/RE/B/BGSSaveLoadManager.cpp b/src/RE/B/BGSSaveLoadManager.cpp index 5c97167e3..b826d9e61 100644 --- a/src/RE/B/BGSSaveLoadManager.cpp +++ b/src/RE/B/BGSSaveLoadManager.cpp @@ -8,12 +8,12 @@ namespace RE return *singleton; } - bool BGSSaveLoadFileEntry::PopulateFileEntryData() - { - using func_t = decltype(&BGSSaveLoadFileEntry::PopulateFileEntryData); - REL::Relocation func{ RELOCATION_ID(34627, 35547) }; - return func(this); - } + bool BGSSaveLoadFileEntry::PopulateFileEntryData() + { + using func_t = decltype(&BGSSaveLoadFileEntry::PopulateFileEntryData); + REL::Relocation func{ RELOCATION_ID(34627, 35547) }; + return func(this); + } void BGSSaveLoadManager::GenerateCharacterID() {