Skip to content

Commit 3443379

Browse files
authored
Build Updates (#591)
* ignore ds store * 13.0.3 offsets * fix build errors
1 parent 3d0a562 commit 3443379

File tree

8 files changed

+10
-13
lines changed

8 files changed

+10
-13
lines changed

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ config = { path = "crates/config" }
6666
menus = { path = "crates/menus", optional = true }
6767

6868
[patch.crates-io]
69-
nnsdk = { git = "https://github.com/ultimate-research/nnsdk-rs"}
7069
# Specifying latest commit because git only doesn't use latest changes
7170
native-tls = { git = "https://github.com/skyline-rs/rust-native-tls", rev = "f202fca" }
72-
crc32fast = { git = "https://github.com/srijs/rust-crc32fast", rev = "e9c65bd" }
7371

7472
[features]
7573
default = ["online", "ui"]

crates/menus/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2021"
99
serde = { version = "1.0", features = ["derive"] }
1010
serde_json = "1.0"
1111
toml = "0.5.11"
12-
skyline-web = "0.1"
12+
skyline-web = { git = "https://github.com/skyline-rs/skyline-web" }
1313
skyline-config = { git = "https://github.com/skyline-rs/skyline-config" }
1414
log = "0.4.19"
1515
smash-arc = { git = "https://github.com/jam1garner/smash-arc" }

crates/menus/src/arcadia/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub fn get_mods(presets: &HashSet<Hash40>) -> Vec<Entry> {
8484
description: Some(res.description.unwrap_or_default().replace('\n', "<br />")),
8585
},
8686
Err(e) => {
87-
skyline_web::DialogOk::ok(format!("The following info.toml is not valid: \n\n* '{}'\n\nError: {}", folder_name, e,));
87+
skyline_web::dialog_ok::DialogOk::ok(format!("The following info.toml is not valid: \n\n* '{}'\n\nError: {}", folder_name, e,));
8888
default_entry
8989
},
9090
};
@@ -100,7 +100,7 @@ pub fn show_arcadia(workspace: Option<String>) {
100100
let umm_path = utils::paths::mods();
101101

102102
if !umm_path.exists() {
103-
skyline_web::DialogOk::ok("It seems the directory specified in your configuration does not exist.");
103+
skyline_web::dialog_ok::DialogOk::ok("It seems the directory specified in your configuration does not exist.");
104104
return;
105105
}
106106
let workspace_name: String =
@@ -215,7 +215,7 @@ pub fn show_arcadia(workspace: Option<String>) {
215215
if new_presets != presets {
216216
// Acquire the filesystem so we can check if it's already finished or not (for boot-time mod manager)
217217
// if let Some(_filesystem) = crate::GLOBAL_FILESYSTEM.try_read() {
218-
if active_workspace.eq(&workspace_name) && skyline_web::Dialog::yes_no("Your preset has successfully been updated!<br>Your changes will take effect on the next boot.<br>Would you like to reboot the game to reload your mods?") {
218+
if active_workspace.eq(&workspace_name) && skyline_web::dialog::Dialog::yes_no("Your preset has successfully been updated!<br>Your changes will take effect on the next boot.<br>Would you like to reboot the game to reload your mods?") {
219219
unsafe { skyline::nn::oe::RequestToRelaunchApplication() };
220220
}
221221
// }

crates/menus/src/config/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ pub fn show_config_editor<CS: ConfigStorage>(storage: &mut StorageHolder<CS>) {
131131
storage.flush();
132132

133133
if reboot_required {
134-
skyline_web::DialogOk::ok(
134+
skyline_web::dialog_ok::DialogOk::ok(
135135
"Some important fields in the configuration have been changed. <br>Smash will now reboot to reload ARCropolis with the new changes.",
136136
);
137137
unsafe { skyline::nn::oe::RequestToRelaunchApplication() };

crates/menus/src/workspaces/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub fn show_workspaces() {
112112

113113
if active_workspace.ne(&prev_set_workspace) {
114114
// if let Some(_filesystem) = crate::GLOBAL_FILESYSTEM.try_read() {
115-
if skyline_web::Dialog::yes_no(format!("Your active workspace has successfully been changed to {}!<br>Your changes will take effect on the next boot.<br>Would you like to reboot the game to reload your mods?", active_workspace)) {
115+
if skyline_web::dialog::Dialog::yes_no(format!("Your active workspace has successfully been changed to {}!<br>Your changes will take effect on the next boot.<br>Would you like to reboot the game to reload your mods?", active_workspace)) {
116116
unsafe { skyline::nn::oe::RequestToRelaunchApplication() };
117117
}
118118
// }

src/api/lua.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::lua::lua::{lua_state, luaL_Reg_container, luaL_Reg_from_api};
22
use std::ffi::CString;
33

44
#[no_mangle]
5-
pub extern "C" fn arcorp_add_lua_menu_manager(name: *mut u8, reg_vec_ptr: *mut luaL_Reg_from_api, reg_vec_size: usize, reg_vec_cap: usize) -> bool {
5+
pub extern "C" fn arcorp_add_lua_menu_manager(name: *mut i8, reg_vec_ptr: *mut luaL_Reg_from_api, reg_vec_size: usize, reg_vec_cap: usize) -> bool {
66
debug!("arcorp_add_lua_menu_manager -> Function called");
77
unsafe {
88
match CString::from_raw(name).to_str() {
@@ -28,7 +28,7 @@ pub extern "C" fn arcorp_add_lua_menu_manager(name: *mut u8, reg_vec_ptr: *mut l
2828
}
2929

3030
#[no_mangle]
31-
pub extern "C" fn arcorp_add_lua_ingame_manager(name: *mut u8, reg_vec_ptr: *mut luaL_Reg_from_api, reg_vec_size: usize, reg_vec_cap: usize) -> bool {
31+
pub extern "C" fn arcorp_add_lua_ingame_manager(name: *mut i8, reg_vec_ptr: *mut luaL_Reg_from_api, reg_vec_size: usize, reg_vec_cap: usize) -> bool {
3232
debug!("arcorp_add_lua_ingame_manager -> Function called");
3333
unsafe {
3434
match CString::from_raw(name).to_str() {
@@ -95,7 +95,7 @@ pub extern "C" fn arcrop_lua_state_push_nil(lua_state: &mut lua_state) {
9595
}
9696

9797
#[no_mangle]
98-
pub extern "C" fn arcrop_lua_state_push_string(lua_state: &mut lua_state, str: *mut u8) {
98+
pub extern "C" fn arcrop_lua_state_push_string(lua_state: &mut lua_state, str: *mut i8) {
9999
debug!("arcrop_lua_state_push_string -> Function called");
100100
unsafe { lua_state.push_string(CString::from_raw(str).to_str().expect("Failed to get string from str pointer!")); }
101101
}

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#![feature(string_remove_matches)]
88
// #![feature(fs_try_exists)]
99
#![feature(int_roundings)]
10-
#![feature(stdsimd)]
1110
#![feature(lazy_cell)]
1211

1312
use std::{

src/lua/lua.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub struct luaL_Reg_container {
7272
#[repr(C)]
7373
#[derive(Debug)]
7474
pub struct luaL_Reg_from_api {
75-
pub name: *mut u8,
75+
pub name: *mut i8,
7676
pub func: LuaCfunction,
7777
}
7878

0 commit comments

Comments
 (0)