Skip to content

Commit

Permalink
0.7.2.775 support
Browse files Browse the repository at this point in the history
  • Loading branch information
QuestionableM committed Dec 9, 2024
1 parent 92d5d4f commit 610686f
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions include/SmSdk/offsets.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#define _SM_VERSION_NUM 071772
#define _SM_VERSION_NUM 072775

///////STATIC VALUE OFFSETS

#if _SM_VERSION_NUM == 071772
#if _SM_VERSION_NUM == 071772 || _SM_VERSION_NUM == 072775
# define SM_CURRENT_GAME_STATE_OFFSET 0x1267518
# define SM_IN_GAME_GUI_MANAGER_OFFSET 0x12674F0
# define SM_GUI_SYSTEM_MANAGER_OFFSET 0x1267668
Expand Down Expand Up @@ -65,7 +65,7 @@

//////VFTABLE OFFSETS

#if _SM_VERSION_NUM == 071772
#if _SM_VERSION_NUM == 071772 || _SM_VERSION_NUM == 072775
# define SM_VTBL_GAME_STATE_OFFSET 0xF889B0
# define SM_VTBL_OPTIONS_MENU_OFFSET 0xF82498
# define SM_VTBL_GAMEPLAY_OPTIONS_MENU_OFFSET 0xF82438
Expand All @@ -87,7 +87,15 @@

//////CONSTRUCTOR OFFSETS

#if _SM_VERSION_NUM == 071772
#if _SM_VERSION_NUM == 072775
# define SM_CONSTRUCTOR_OPTIONS_SUB_MENU_BASE_OFFSET 0x3BF910
# define SM_CONSTRUCTOR_CONTROL_OPTIONS_MENU_OFFSET 0x3286A0
# define SM_CONSTRUCTOR_DISPLAY_OPTIONS_MENU_OFFSET 0x338040
# define SM_CONSTRUCTOR_GRAPHICS_OPTIONS_MENU_OFFSET 0x351DA0
# define SM_CONSTRUCTOR_COMPOUND_BUTTON_OFFSET 0x644AF0
# define SM_CONSTRUCTOR_RADIO_BUTTON_SET_OFFSET 0x28C730
# define SM_CONSTRUCTOR_OPTIONS_ITEM_SLIDER_OFFSET 0x3BBEA0
#elif _SM_VERSION_NUM == 071772
# define SM_CONSTRUCTOR_OPTIONS_SUB_MENU_BASE_OFFSET 0x3BF8F0
# define SM_CONSTRUCTOR_CONTROL_OPTIONS_MENU_OFFSET 0x3286A0
# define SM_CONSTRUCTOR_DISPLAY_OPTIONS_MENU_OFFSET 0x338040
Expand Down Expand Up @@ -115,7 +123,9 @@

/////FUNCTIONS

#if _SM_VERSION_NUM == 071772
#if _SM_VERSION_NUM == 072775
# define SM_FUNC_VERTICAL_STACK_BOX_ADD_NEW_ITEM_OFFSET 0x527160
#elif _SM_VERSION_NUM == 071772
# define SM_FUNC_VERTICAL_STACK_BOX_ADD_NEW_ITEM_OFFSET 0x527140
#elif _SM_VERSION_NUM == 070771
# define SM_FUNC_VERTICAL_STACK_BOX_ADD_NEW_ITEM_OFFSET 0x527140
Expand All @@ -125,10 +135,13 @@

/////VARIABLES

#if _SM_VERSION_NUM == 071772
#define SM_VAR_PAINT_DRAG_LIMITER 0x3E0E1B
#define SM_VAR_PAINT_ERASE_LIMITER 0x2AD53D
#if _SM_VERSION_NUM == 072775
# define SM_VAR_PAINT_DRAG_LIMITER 0x3E0E3B
# define SM_VAR_PAINT_ERASE_LIMITER 0x2AD53D
#elif _SM_VERSION_NUM == 071772
# define SM_VAR_PAINT_DRAG_LIMITER 0x3E0E1B
# define SM_VAR_PAINT_ERASE_LIMITER 0x2AD53D
#else
#define SM_VAR_PAINT_DRAG_LIMITER 0x3F060D
#define SM_VAR_PAINT_ERASE_LIMITER 0x3F0D9B
# define SM_VAR_PAINT_DRAG_LIMITER 0x3F060D
# define SM_VAR_PAINT_ERASE_LIMITER 0x3F0D9B
#endif

0 comments on commit 610686f

Please sign in to comment.