Skip to content

Commit

Permalink
Rerun dump
Browse files Browse the repository at this point in the history
  • Loading branch information
Mozz3d committed Jan 27, 2025
1 parent cd026b3 commit e4dbf79
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 39 deletions.
2 changes: 1 addition & 1 deletion include/RED4ext/Dump/Reflection-inl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RED4EXT_INLINE void Dump(std::filesystem::path aOutPath, std::filesystem::path a
size_t i = 0;

static constexpr std::pair<std::string_view, bool> uniqueNamespaces[] = {
{"AI", false}, {"GpuApi", true}, {"GpuWrapApi", true}, {"GpuWrapApiVertexPacking", true}};
{"AI", false}, {"GpuApi", true}, {"GpuWrapApiVertexPacking", true}, {"GpuWrapApi", true}};

for (const auto& [name, isSpecialCase] : uniqueNamespaces)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ struct __declspec(align(0x10)) PhotoModeSystem : game::IPhotoModeSystem
static constexpr const char* NAME = "gamePhotoModeSystem";
static constexpr const char* ALIAS = "PhotoModeSystem";

uint8_t unk48[0xA40 - 0x48]; // 48
uint8_t unk48[0xA60 - 0x48]; // 48
};
RED4EXT_ASSERT_SIZE(PhotoModeSystem, 0xA40);
RED4EXT_ASSERT_SIZE(PhotoModeSystem, 0xA60);
} // namespace game
using gamePhotoModeSystem = game::PhotoModeSystem;
using PhotoModeSystem = game::PhotoModeSystem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ struct Vehicle_Record : game::data::SpawnableObject_Record
static constexpr const char* NAME = "gamedataVehicle_Record";
static constexpr const char* ALIAS = "Vehicle_Record";

uint8_t unkF8[0x590 - 0xF8]; // F8
uint8_t unkF8[0x5A0 - 0xF8]; // F8
};
RED4EXT_ASSERT_SIZE(Vehicle_Record, 0x590);
RED4EXT_ASSERT_SIZE(Vehicle_Record, 0x5A0);
} // namespace game::data
using gamedataVehicle_Record = game::data::Vehicle_Record;
using Vehicle_Record = game::data::Vehicle_Record;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ struct ChangeCameraControlHintVisibilityEvent : red::Event
static constexpr const char* NAME = "gameuiChangeCameraControlHintVisibilityEvent";
static constexpr const char* ALIAS = "ChangeCameraControlHintVisibilityEvent";

bool visible; // 40
uint8_t unk41[0x48 - 0x41]; // 41
bool movementVisible; // 40
bool rotationVisible; // 41
uint8_t unk42[0x48 - 0x42]; // 42
};
RED4EXT_ASSERT_SIZE(ChangeCameraControlHintVisibilityEvent, 0x48);
} // namespace game::ui
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#pragma once

// clang-format off

// This file is generated from the Game's Reflection data

#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/ink/CallbackBase.hpp>

namespace RED4ext
{
namespace ink
{
struct GameScreenshotCallback : ink::CallbackBase
{
static constexpr const char* NAME = "inkGameScreenshotCallback";
static constexpr const char* ALIAS = NAME;

uint8_t unk28[0x38 - 0x28]; // 28
};
RED4EXT_ASSERT_SIZE(GameScreenshotCallback, 0x38);
} // namespace ink
using inkGameScreenshotCallback = ink::GameScreenshotCallback;
} // namespace RED4ext

// clang-format on
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct ICharacterConditionType : quest::IConditionType
static constexpr const char* NAME = "questICharacterConditionType";
static constexpr const char* ALIAS = NAME;
game::EntityReference attackerRef; // 38
game::EntityReference puppetRef; // 38
bool isPlayer; // 70
uint8_t unk71[0x78 - 0x71]; // 71
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ struct VehicleCustomization : ent::IComponent
static constexpr const char* ALIAS = "VehicleCustomizationComponent";

DynArray<vehicle::VehicleAppearanceToDecalsName> defaultDecalsPerAppearance; // 90
uint8_t unkA0[0x148 - 0xA0]; // A0
uint8_t unkA0[0x158 - 0xA0]; // A0
};
RED4EXT_ASSERT_SIZE(VehicleCustomization, 0x148);
RED4EXT_ASSERT_SIZE(VehicleCustomization, 0x158);
} // namespace vehicle
using vehicleVehicleCustomization = vehicle::VehicleCustomization;
using VehicleCustomizationComponent = vehicle::VehicleCustomization;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,37 +53,40 @@ struct BenchmarkSummary : IScriptable
int32_t DLSSQuality; // 190
float DLSSSharpness; // 194
bool DLSSFrameGenEnabled; // 198
bool FSR2Enabled; // 199
bool DLSSMultiFrameGenEnabled; // 199
uint8_t unk19A[0x19C - 0x19A]; // 19A
int32_t FSR2Quality; // 19C
float FSR2Sharpness; // 1A0
bool FSR3Enabled; // 1A4
uint8_t unk1A5[0x1A8 - 0x1A5]; // 1A5
int32_t FSR3Quality; // 1A8
float FSR3Sharpness; // 1AC
bool FSR3FrameGenEnabled; // 1B0
bool XeSSEnabled; // 1B1
uint8_t unk1B2[0x1B4 - 0x1B2]; // 1B2
int32_t XeSSQuality; // 1B4
float XeSSSharpness; // 1B8
bool DRSEnabled; // 1BC
uint8_t unk1BD[0x1C0 - 0x1BD]; // 1BD
uint32_t DRSTargetFPS; // 1C0
uint32_t DRSMinimalResolutionPercentage; // 1C4
uint32_t DRSMaximalResolutionPercentage; // 1C8
bool CASSharpeningEnabled; // 1CC
bool FSREnabled; // 1CD
uint8_t unk1CE[0x1D0 - 0x1CE]; // 1CE
int32_t FSRQuality; // 1D0
bool rayTracingEnabled; // 1D4
bool rayTracedReflections; // 1D5
bool rayTracedSunShadows; // 1D6
bool rayTracedLocalShadows; // 1D7
int32_t rayTracedLightingQuality; // 1D8
bool rayTracedPathTracingEnabled; // 1DC
uint8_t unk1DD[0x1E0 - 0x1DD]; // 1DD
int32_t DLSSMultiFrameGenFrameToGenerate; // 19C
bool FSR2Enabled; // 1A0
uint8_t unk1A1[0x1A4 - 0x1A1]; // 1A1
int32_t FSR2Quality; // 1A4
float FSR2Sharpness; // 1A8
bool FSR3Enabled; // 1AC
uint8_t unk1AD[0x1B0 - 0x1AD]; // 1AD
int32_t FSR3Quality; // 1B0
float FSR3Sharpness; // 1B4
bool FSR3FrameGenEnabled; // 1B8
bool XeSSEnabled; // 1B9
uint8_t unk1BA[0x1BC - 0x1BA]; // 1BA
int32_t XeSSQuality; // 1BC
float XeSSSharpness; // 1C0
bool DRSEnabled; // 1C4
uint8_t unk1C5[0x1C8 - 0x1C5]; // 1C5
uint32_t DRSTargetFPS; // 1C8
uint32_t DRSMinimalResolutionPercentage; // 1CC
uint32_t DRSMaximalResolutionPercentage; // 1D0
bool CASSharpeningEnabled; // 1D4
bool FSREnabled; // 1D5
uint8_t unk1D6[0x1D8 - 0x1D6]; // 1D6
int32_t FSRQuality; // 1D8
bool rayTracingEnabled; // 1DC
bool rayTracedReflections; // 1DD
bool rayTracedSunShadows; // 1DE
bool rayTracedLocalShadows; // 1DF
int32_t rayTracedLightingQuality; // 1E0
bool rayTracedPathTracingEnabled; // 1E4
uint8_t unk1E5[0x1E8 - 0x1E5]; // 1E5
};
RED4EXT_ASSERT_SIZE(BenchmarkSummary, 0x1E0);
RED4EXT_ASSERT_SIZE(BenchmarkSummary, 0x1E8);
} // namespace world
using worldBenchmarkSummary = world::BenchmarkSummary;
} // namespace RED4ext
Expand Down

0 comments on commit e4dbf79

Please sign in to comment.