Skip to content

Commit

Permalink
Merge pull request #996 from alphanin9/patch-2.21-support
Browse files Browse the repository at this point in the history
Patch 2.21 support
  • Loading branch information
maximegmd authored Jan 23, 2025
2 parents 2364187 + e22a6d2 commit c8c9749
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
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

0 comments on commit c8c9749

Please sign in to comment.