Skip to content

Commit 3debcb5

Browse files
committed
Disable updater for the time being
1 parent 3443379 commit 3debcb5

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

Cargo.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "arcropolis"
3-
version = "4.0.3"
3+
version = "4.0.4"
44
authors = ["Raytwo <[email protected]>, blujay <[email protected]>, jam1garner <[email protected]>, CoolSonicKirby <[email protected]>"]
55
edition = "2018"
66

@@ -22,7 +22,7 @@ walkdir = "2.3.3"
2222
thiserror = "1.0.43"
2323
camino = "1"
2424
# Switch utilities
25-
skyline = { git = "https://github.com/Raytwo/skyline-rs", branch="preview" }
25+
skyline = { git = "https://github.com/ultimate-research/skyline-rs" }
2626
skyline-config = { git = "https://github.com/skyline-rs/skyline-config" }
2727
# For the updater
2828
zip = { version = "0.6", default-features = false, features = ["deflate"], optional = true }
@@ -70,7 +70,7 @@ menus = { path = "crates/menus", optional = true }
7070
native-tls = { git = "https://github.com/skyline-rs/rust-native-tls", rev = "f202fca" }
7171

7272
[features]
73-
default = ["online", "ui"]
73+
default = ["ui"]
7474
online = ["zip", "gh-updater", "minreq"]
7575
ui = ["menus"]
7676

@@ -80,3 +80,9 @@ panic = "abort"
8080
[profile.release]
8181
panic = "abort"
8282
lto = true
83+
opt-level = 1
84+
incremental = true
85+
debug = 1
86+
87+
[profile.release.package."*"]
88+
opt-level = 3

crates/config/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(lazy_cell)]
2-
31
use std::{
42
collections::{HashMap, HashSet},
53
path::PathBuf,

src/lib.rs

Lines changed: 13 additions & 14 deletions
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(lazy_cell)]
1110

1211
use std::{
1312
collections::HashMap, fmt, io::{BufWriter, Write}, path::{Path, PathBuf}, str::FromStr, sync::{LazyLock, RwLock}
@@ -238,17 +237,17 @@ fn initial_loading(_ctx: &InlineCtx) {
238237
check_for_changelog();
239238

240239
// Begin checking if there is an update to do. We do this in a separate thread so that we can install the hooks while we are waiting on GitHub response
241-
#[cfg(feature = "online")]
242-
let _updater = std::thread::Builder::new()
243-
.stack_size(0x10000)
244-
.spawn(|| {
245-
unsafe {
246-
let curr_thread = nn::os::GetCurrentThread();
247-
nn::os::ChangeThreadPriority(curr_thread, 16);
248-
}
249-
check_for_update();
250-
})
251-
.unwrap();
240+
// #[cfg(feature = "online")]
241+
// let _updater = std::thread::Builder::new()
242+
// .stack_size(0x10000)
243+
// .spawn(|| {
244+
// unsafe {
245+
// let curr_thread = nn::os::GetCurrentThread();
246+
// nn::os::ChangeThreadPriority(curr_thread, 16);
247+
// }
248+
// check_for_update();
249+
// })
250+
// .unwrap();
252251

253252
// Commented out until we get an actual news server
254253
// #[cfg(feature = "online")]
@@ -287,8 +286,8 @@ fn initial_loading(_ctx: &InlineCtx) {
287286
fuse::mods::install_mod_fs();
288287
api::event::send_event(Event::ModFilesystemMounted);
289288

290-
#[cfg(feature = "online")]
291-
_updater.join().unwrap();
289+
// #[cfg(feature = "online")]
290+
// _updater.join().unwrap();
292291
}
293292

294293
#[skyline::hook(offset = offsets::title_screen_version())]

0 commit comments

Comments
 (0)