mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-23 06:46:11 +00:00
Always remove menu conf file on startup (for version upgrade bug)
This commit is contained in:
parent
79a84fba3a
commit
ab211a7aee
1 changed files with 2 additions and 3 deletions
|
@ -45,9 +45,8 @@ pub fn main() {
|
||||||
);
|
);
|
||||||
mkdir(c_str!("sd:/TrainingModpack/"), 0777);
|
mkdir(c_str!("sd:/TrainingModpack/"), 0777);
|
||||||
|
|
||||||
if access(c_str!("sd:/TrainingModpack/training_modpack.conf"), 0) != -1 {
|
println!("[Training Modpack] Removing training_modpack_menu.conf...");
|
||||||
remove(c_str!("sd:/TrainingModpack/training_modpack.conf"));
|
remove(c_str!("sd:/TrainingModpack/training_modpack_menu.conf"));
|
||||||
}
|
|
||||||
|
|
||||||
let mut f = fopen(
|
let mut f = fopen(
|
||||||
c_str!("sd:/TrainingModpack/training_modpack.log"),
|
c_str!("sd:/TrainingModpack/training_modpack.log"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue