diff --git a/src/lib.rs b/src/lib.rs index a1a3dca0b..e506fd38d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -433,8 +433,8 @@ pub fn main() { ); })); - 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"); + if utils::env::get_game_version() != semver::Version::new(13, 0, 4) { + skyline::error::show_error(69, "Smash Ultimate requires an update.\0", "ARCropolis cannot currently run on a Smash version other than 13.0.4\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 9cf62c426..2176231b9 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(0x38f68d0)] +#[from_offset(0x38f6cb0)] fn lua_tonumberx(lua_state: &mut lua_state, idx: i32, unk: *const u64) -> f32; -#[from_offset(0x38f3c20)] +#[from_offset(0x38f4000)] fn lua_tointegerx(lua_state: &mut lua_state, idx: i32, unk: *const u64) -> u64; -#[from_offset(0x38f3da0)] +#[from_offset(0x38f4180)] fn lua_tolstring(lua_state: &mut lua_state, idx: i32, unk: *const u64) -> *const u8; #[from_offset(offsets::declare_namespace())]