Skip to content

Commit

Permalink
0.7.2.775 version fix
Browse files Browse the repository at this point in the history
  • Loading branch information
QuestionableM committed Dec 9, 2024
1 parent 158a4d2 commit 775c41d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions NetworkingFix/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ ScrapMechanic.exe.text + 416316 : 75 0C - jne ScrapMechanic.exe.text + 416324
*/

// Set any version that is supported
#define _SM_VERSION_NUM 071772
#define _SM_VERSION_NUM 072775

#if _SM_VERSION_NUM == 071772
#if _SM_VERSION_NUM == 072775
static constexpr std::uintptr_t offset = 0x4073DC;
static constexpr std::array<std::uint8_t, 6> originalBytes{ 0x0F, 0x86, 0x3B, 0x01, 0x00, 0x00 };
static constexpr std::array<std::uint8_t, 6> replacedBytes{ 0xE9, 0x3C, 0x01, 0x00, 0x00, 0x90 };
#elif _SM_VERSION_NUM == 071772
static constexpr std::uintptr_t offset = 0x4073BC;
static constexpr std::array<std::uint8_t, 6> originalBytes{ 0x0F, 0x86, 0x3B, 0x01, 0x00, 0x00 };
static constexpr std::array<std::uint8_t, 6> replacedBytes{ 0xE9, 0x3C, 0x01, 0x00, 0x00, 0x90 };
Expand Down

0 comments on commit 775c41d

Please sign in to comment.