Skip to content

Commit 92ba837

Browse files
committed
core: bump wowsunpack + wowsreplay versions to fix replays in 14.9.0
1 parent 7439a10 commit 92ba837

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wows_toolkit"
3-
version = "0.1.36"
3+
version = "0.1.37"
44
authors = ["landaire"]
55
edition = "2024"
66
rust-version = "1.88"
@@ -18,9 +18,9 @@ eframe = { version = "0.31.0", default-features = false, features = [
1818
] }
1919
tracing = "0.1"
2020

21-
wows_replays = { version = "0.4.0", features = ["arc"] }
21+
wows_replays = { version = "0.6.0", features = ["arc"] }
2222
serde = { version = "1", features = ["derive"] }
23-
wowsunpack = { version = "0.6", default-features = false, features = [
23+
wowsunpack = { version = "0.8", default-features = false, features = [
2424
"arc",
2525
"cbor",
2626
"json",
@@ -103,8 +103,8 @@ debug = true
103103

104104
[patch.crates-io]
105105
#serde-pickle = { path = "../serde-pickle" } #git = "https://github.com/landaire/serde-pickle.git" }
106-
#wows_replays = { path = "../wows-replays/parser" }
107-
#wowsunpack = { path = "../wowsunpack" }
106+
# wows_replays = { path = "../wows-replays/parser" }
107+
# wowsunpack = { path = "../wowsunpack" }
108108

109109
# If you want to use the bleeding edge version of egui and eframe:
110110
# egui = { git = "https://github.com/emilk/egui", branch = "master" }

src/app.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ pub struct Settings {
392392
pub sent_replays: Arc<RwLock<HashSet<String>>>,
393393
#[serde(default = "default_bool::<false>")]
394394
pub has_019_game_params_update: bool,
395+
#[serde(default = "default_bool::<false>")]
396+
pub has_037_crew_skills_fix: bool,
395397
#[serde(default)]
396398
pub player_tracker: Arc<RwLock<PlayerTracker>>,
397399
#[serde(default)]
@@ -425,6 +427,7 @@ impl Default for Settings {
425427
constants_file_commit: None,
426428
debug_mode: false,
427429
build_consent_window_shown: false,
430+
has_037_crew_skills_fix: true,
428431
}
429432
}
430433
}
@@ -896,6 +899,13 @@ impl WowsToolkitApp {
896899
let _ = std::fs::remove_file(game_params_bin_path());
897900
}
898901

902+
if !saved_state.tab_state.settings.has_037_crew_skills_fix {
903+
saved_state.tab_state.settings.has_037_crew_skills_fix = true;
904+
905+
// Remove the old game params
906+
let _ = std::fs::remove_file(game_params_bin_path());
907+
}
908+
899909
if !saved_state.tab_state.settings.wows_dir.is_empty() {
900910
let task = Some(saved_state.tab_state.load_game_data(PathBuf::from(saved_state.tab_state.settings.wows_dir.clone())));
901911
update_background_task!(saved_state.tab_state.background_tasks, task);

0 commit comments

Comments
 (0)