From f01be3430e13c573ee67a5e86c4402014818db7d Mon Sep 17 00:00:00 2001 From: jugeeya Date: Wed, 19 Aug 2020 15:53:44 -0700 Subject: [PATCH] persist menu configs across boots --- src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 741d530..42ed3a4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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"),