Skip to content

Commit

Permalink
Disable updater for the time being
Browse files Browse the repository at this point in the history
  • Loading branch information
Raytwo committed Oct 11, 2024
1 parent 3443379 commit 3debcb5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
12 changes: 9 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "arcropolis"
version = "4.0.3"
version = "4.0.4"
authors = ["Raytwo <[email protected]>, blujay <[email protected]>, jam1garner <[email protected]>, CoolSonicKirby <[email protected]>"]
edition = "2018"

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

[features]
default = ["online", "ui"]
default = ["ui"]
online = ["zip", "gh-updater", "minreq"]
ui = ["menus"]

Expand All @@ -80,3 +80,9 @@ panic = "abort"
[profile.release]
panic = "abort"
lto = true
opt-level = 1
incremental = true
debug = 1

[profile.release.package."*"]
opt-level = 3
2 changes: 0 additions & 2 deletions crates/config/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(lazy_cell)]

use std::{
collections::{HashMap, HashSet},
path::PathBuf,
Expand Down
27 changes: 13 additions & 14 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#![feature(string_remove_matches)]
// #![feature(fs_try_exists)]
#![feature(int_roundings)]
#![feature(lazy_cell)]

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

// 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
#[cfg(feature = "online")]
let _updater = std::thread::Builder::new()
.stack_size(0x10000)
.spawn(|| {
unsafe {
let curr_thread = nn::os::GetCurrentThread();
nn::os::ChangeThreadPriority(curr_thread, 16);
}
check_for_update();
})
.unwrap();
// #[cfg(feature = "online")]
// let _updater = std::thread::Builder::new()
// .stack_size(0x10000)
// .spawn(|| {
// unsafe {
// let curr_thread = nn::os::GetCurrentThread();
// nn::os::ChangeThreadPriority(curr_thread, 16);
// }
// check_for_update();
// })
// .unwrap();

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

#[cfg(feature = "online")]
_updater.join().unwrap();
// #[cfg(feature = "online")]
// _updater.join().unwrap();
}

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

0 comments on commit 3debcb5

Please sign in to comment.