mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
Fixed TUNABLE_BASE_ADDRESS being incorrect. (#3441)
This commit is contained in:
parent
6e8c2106d4
commit
879896ff62
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
{
|
{
|
||||||
constexpr int TUNABLE_BASE_ADDRESS = 0x40000; // This never changes
|
constexpr int TUNABLE_BASE_ADDRESS = 0x40001; // This never changes
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
struct tunable_save_struct
|
struct tunable_save_struct
|
||||||
@ -78,9 +78,9 @@ namespace big
|
|||||||
auto offset = it->second;
|
auto offset = it->second;
|
||||||
|
|
||||||
if (offset > TUNABLE_BASE_ADDRESS)
|
if (offset > TUNABLE_BASE_ADDRESS)
|
||||||
return (offset - TUNABLE_BASE_ADDRESS) - 1;
|
return (offset - TUNABLE_BASE_ADDRESS);
|
||||||
|
|
||||||
return (TUNABLE_BASE_ADDRESS - offset) - 1;
|
return (TUNABLE_BASE_ADDRESS - offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user