mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-24 10:54:16 +00:00
persist menu configs across boots
This commit is contained in:
parent
5fee828169
commit
f01be3430e
1 changed files with 4 additions and 3 deletions
|
@ -12,7 +12,7 @@ extern crate bitflags;
|
|||
use crate::common::*;
|
||||
use training::combo::FRAME_ADVANTAGE;
|
||||
|
||||
use skyline::libc::{c_void, fclose, fopen, fwrite, mkdir, remove};
|
||||
use skyline::libc::{c_void, fclose, fopen, fwrite, mkdir};
|
||||
use skyline::nro::{self, NroInfo};
|
||||
|
||||
fn nro_main(nro: &NroInfo<'_>) {
|
||||
|
@ -51,8 +51,9 @@ pub fn main() {
|
|||
);
|
||||
mkdir(c_str!("sd:/TrainingModpack/"), 0777);
|
||||
|
||||
println!("[Training Modpack] Removing training_modpack_menu.conf...");
|
||||
remove(c_str!("sd:/TrainingModpack/training_modpack_menu.conf"));
|
||||
// Only necessary upon version upgrade.
|
||||
// println!("[Training Modpack] Removing training_modpack_menu.conf...");
|
||||
// remove(c_str!("sd:/TrainingModpack/training_modpack_menu.conf"));
|
||||
|
||||
let mut f = fopen(
|
||||
c_str!("sd:/TrainingModpack/training_modpack.log"),
|
||||
|
|
Loading…
Reference in a new issue