diff --git a/src/fixes.rs b/src/fixes.rs index 95ac10737..fa515b486 100644 --- a/src/fixes.rs +++ b/src/fixes.rs @@ -51,25 +51,25 @@ fn install_added_color_patches() { */ // OFFSETS ARE CURRENTLY HARDCODED TO VERSION 13.0.2 static ADDED_COLOR_PATCHES: &[(usize, u32)] = &[ - (0x18355dc, 0xF104027F), // cmp x19, #256 (Issue related to Aegis) - (0x183529c, 0xF104027F), // cmp x19, #256 (Issue related to Aegis) - (0x18355f8, 0xF104011F), // cmp x8, #256 (Issue related to Aegis) - (0x18359c8, 0xF10402FF), // cmp x23, #256 (Issue related to Aegis) - (0x1835e5c, 0xF104011F), // cmp x8, #256 (Issue related to Aegis) - (0x18365b4, 0xF104027F), // cmp x19, #256 (Issue related to Aegis) - (0x18368d0, 0xF104013F), // cmp x9, #256 (Issue related to Aegis) - (0x1a1cdd0, 0xF104011F), // cmp x8, #256 (Issue related to Aegis) - (0x1a1ce14, 0xF104011F), // cmp x8, #256 (Issue related to Aegis) + (0x18355fc, 0xF104027F), // cmp x19, #256 (Issue related to Aegis) + (0x18352bc, 0xF104027F), // cmp x19, #256 (Issue related to Aegis) + (0x1835618, 0xF104011F), // cmp x8, #256 (Issue related to Aegis) + (0x18359e8, 0xF10402FF), // cmp x23, #256 (Issue related to Aegis) + (0x1835e7c, 0xF104011F), // cmp x8, #256 (Issue related to Aegis) + (0x18365d4, 0xF104027F), // cmp x19, #256 (Issue related to Aegis) + (0x18368f0, 0xF104013F), // cmp x9, #256 (Issue related to Aegis) + (0x1a1cdf0, 0xF104011F), // cmp x8, #256 (Issue related to Aegis) + (0x1a1ce34, 0xF104011F), // cmp x8, #256 (Issue related to Aegis) (0x14de31c, 0x7104013F), // cmp w9, #256 (Issue related to Terry) (0x14e1624, 0x710402FF), // cmp w23, #256 (Issue related to Terry) (0x14e17b0, 0x7104011F), // cmp w8, #256 (Issue related to Terry) - (0x1a56064, 0x52800020), // mov w0, #1 (Issue related to Tourney Mode Crash) - (0x1a56194, 0xF104011F), // cmp x8, #256 (Issue related to Tourney Mode Crash) - (0x1a55a54, 0x7104015F), // cmp w10, #256 (Issue related to Tourney Mode Crash) - (0x1a55aec, 0x7104001F), // cmp w0, #256 (Issue related to Tourney Mode Crash) - (0x1a55b18, 0xF104001F), // cmp x0, #256 (Issue related to Tourney Mode Crash) - (0x1a55a80, 0xF104001F), // cmp x0, #256 (Issue related to Tourney Mode Crash) - (0x1a55ab4, 0x7104017F), // cmp w11, #256 (Issue related to Tourney Mode Crash) + (0x1a56084, 0x52800020), // mov w0, #1 (Issue related to Tourney Mode Crash) + (0x1a561b4, 0xF104011F), // cmp x8, #256 (Issue related to Tourney Mode Crash) + (0x1a55a74, 0x7104015F), // cmp w10, #256 (Issue related to Tourney Mode Crash) + (0x1a55b0c, 0x7104001F), // cmp w0, #256 (Issue related to Tourney Mode Crash) + (0x1a55b38, 0xF104001F), // cmp x0, #256 (Issue related to Tourney Mode Crash) + (0x1a55aa0, 0xF104001F), // cmp x0, #256 (Issue related to Tourney Mode Crash) + (0x1a55ad4, 0x7104017F), // cmp w11, #256 (Issue related to Tourney Mode Crash) ]; for entry in ADDED_COLOR_PATCHES { @@ -116,7 +116,7 @@ fn install_lazy_loading_patches() { pub fn get_ui_chara_path_from_hash_color_and_type(ui_chara_hash: u64, color_slot: u32, ui_type: u32) -> u64; // This takes the character_database and the ui_chara_hash to get the color_num - #[from_offset(0x32384a0)] + #[from_offset(0x32384c0)] pub fn get_color_num_from_hash(character_database: u64, ui_chara_hash: u64) -> u8; // This takes the character_database and the ui_chara_hash to get the chara's respective echo (for loading it at the same time) diff --git a/src/lib.rs b/src/lib.rs index f167e20a6..f3185010c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -435,8 +435,8 @@ pub fn main() { ); })); - if utils::env::get_game_version() != semver::Version::new(13, 0, 2) { - skyline::error::show_error(69, "Smash Ultimate requires an update.\0", "ARCropolis cannot currently run on a Smash version other than 13.0.2\n\nConsider updating your game or uninstalling ARCropolis.\0"); + if utils::env::get_game_version() != semver::Version::new(13, 0, 3) { + skyline::error::show_error(69, "Smash Ultimate requires an update.\0", "ARCropolis cannot currently run on a Smash version other than 13.0.3\n\nConsider updating your game or uninstalling ARCropolis.\0"); // Do not perform any of the hook installation and let the game proceed as normal. return; } diff --git a/src/lua/lua.rs b/src/lua/lua.rs index a621fbf27..ae2bc3d59 100644 --- a/src/lua/lua.rs +++ b/src/lua/lua.rs @@ -27,13 +27,13 @@ fn lua_getfield(lua_state: &mut lua_state, lua_registry: *const TValue, name: *c #[from_offset(offsets::lua_setmetatable())] fn lua_setmetatable(lua_state: &mut lua_state, obj_idx: i32); -#[from_offset(0x38f68b0)] +#[from_offset(0x38f68d0)] fn lua_tonumberx(lua_state: &mut lua_state, idx: i32, unk: *const u64) -> f32; -#[from_offset(0x38f3c00)] +#[from_offset(0x38f3c20)] fn lua_tointegerx(lua_state: &mut lua_state, idx: i32, unk: *const u64) -> u64; -#[from_offset(0x38f3d80)] +#[from_offset(0x38f3da0)] fn lua_tolstring(lua_state: &mut lua_state, idx: i32, unk: *const u64) -> *const u8; #[from_offset(offsets::declare_namespace())]