Skip to content

Commit c8c9749

Browse files
authored
Merge pull request #996 from alphanin9/patch-2.21-support
Patch 2.21 support
2 parents 2364187 + e22a6d2 commit c8c9749

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/Image.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
#include "RED4ext/Api/v0/FileVer.hpp"
44
#include "RED4ext/Api/SemVer.hpp"
55

6-
76
struct Image
87
{
98
void Initialize();
109

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

1312
uintptr_t base_address;
1413
mem::region TextRegion;
15-
RED4ext::v0::FileVer FileVersion{0,0,0,0};
14+
RED4ext::v0::FileVer FileVersion{0, 0, 0, 0};
1615
RED4ext::v0::SemVer SemVersion{0, 0, 0, 0};
1716
};

src/reverse/Addresses.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ constexpr uint32_t CPatches_OptionsInit = 4089777341UL; // Config::IConfigVa
2424
#pragma endregion
2525

2626
#pragma region CPhotoMode
27-
constexpr uint32_t CPhotoMode_SetRecordID = 4241565651UL; // <UNKNOWN_SYMBOL>
27+
constexpr uint32_t CPhotoMode_SetRecordID = 4052428712UL; // <UNKNOWN_SYMBOL>
2828
#pragma endregion
2929

3030
#pragma region CRenderGlobal
@@ -64,9 +64,8 @@ constexpr uint32_t CWinapi_ClipToCenter = 261693736UL; // input::InputSystemWin3
6464
#pragma endregion
6565

6666
#pragma region gameIGameSystem
67-
constexpr uint32_t gameIGameSystem_Initialize =
68-
385618721UL; // <UNKNOWN_SYMBOL> -> should probably be 3114931869 (spawn::Set::Initialize) but that implies we do something weird overall with this func atm
69-
// The above would require CET changes as that one wants game instance to be passed at a2+80
67+
constexpr uint32_t gameIGameSystem_Initialize = 385618721UL; // <UNKNOWN_SYMBOL> -> should probably be 3114931869 (spawn::Set::Initialize) but that implies we do something weird
68+
// overall with this func atm The above would require CET changes as that one wants game instance to be passed at a2+80
7069
constexpr uint32_t gameIGameSystem_UnInitialize = 3313306514UL; // spawn::Set::Deinitialize
7170
constexpr uint32_t gameIGameSystem_Spawn = 2509382878UL; // spawn::Set::SpawnObject
7271
constexpr uint32_t gameIGameSystem_Despawn = 3168866665UL; // spawn::Set::DespawnObject

vendor/RED4ext.SDK

Submodule RED4ext.SDK updated 739 files

0 commit comments

Comments
 (0)