1
0
Fork 0
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:
jugeeya 2020-08-19 15:53:44 -07:00
parent 5fee828169
commit f01be3430e

View file

@ -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"),