Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 2.21 support #996

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Image.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
#include "RED4ext/Api/v0/FileVer.hpp"
#include "RED4ext/Api/SemVer.hpp"


struct Image
{
void Initialize();

static std::tuple<uint32_t, uint16_t> GetSupportedVersion() noexcept { return std::make_tuple(2, 2000); }
static std::tuple<uint32_t, uint16_t> GetSupportedVersion() noexcept { return std::make_tuple(2, 21); }

uintptr_t base_address;
mem::region TextRegion;
RED4ext::v0::FileVer FileVersion{0,0,0,0};
RED4ext::v0::FileVer FileVersion{0, 0, 0, 0};
RED4ext::v0::SemVer SemVersion{0, 0, 0, 0};
};
7 changes: 3 additions & 4 deletions src/reverse/Addresses.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ constexpr uint32_t CPatches_OptionsInit = 4089777341UL; // Config::IConfigVa
#pragma endregion

#pragma region CPhotoMode
constexpr uint32_t CPhotoMode_SetRecordID = 4241565651UL; // <UNKNOWN_SYMBOL>
constexpr uint32_t CPhotoMode_SetRecordID = 4052428712UL; // <UNKNOWN_SYMBOL>
#pragma endregion

#pragma region CRenderGlobal
Expand Down Expand Up @@ -64,9 +64,8 @@ constexpr uint32_t CWinapi_ClipToCenter = 261693736UL; // input::InputSystemWin3
#pragma endregion

#pragma region gameIGameSystem
constexpr uint32_t gameIGameSystem_Initialize =
385618721UL; // <UNKNOWN_SYMBOL> -> should probably be 3114931869 (spawn::Set::Initialize) but that implies we do something weird overall with this func atm
// The above would require CET changes as that one wants game instance to be passed at a2+80
constexpr uint32_t gameIGameSystem_Initialize = 385618721UL; // <UNKNOWN_SYMBOL> -> should probably be 3114931869 (spawn::Set::Initialize) but that implies we do something weird
// overall with this func atm The above would require CET changes as that one wants game instance to be passed at a2+80
constexpr uint32_t gameIGameSystem_UnInitialize = 3313306514UL; // spawn::Set::Deinitialize
constexpr uint32_t gameIGameSystem_Spawn = 2509382878UL; // spawn::Set::SpawnObject
constexpr uint32_t gameIGameSystem_Despawn = 3168866665UL; // spawn::Set::DespawnObject
Expand Down
2 changes: 1 addition & 1 deletion vendor/RED4ext.SDK
Submodule RED4ext.SDK updated 739 files