1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-14 02:16:10 +00:00

Change menu file name to training_menu.html (#239)

Co-authored-by: asimon-1 <asimon1@protonmail.com>
This commit is contained in:
asimon-1 2021-08-23 21:22:16 -04:00 committed by jugeeya
parent f8dba57044
commit ee56f99652
3 changed files with 4 additions and 4 deletions

View file

@ -313,12 +313,12 @@ pub unsafe fn write_menu() {
let path = Path::new("sd:/atmosphere/contents")
.join(&format!("{:016X}", program_id))
.join(&format!("manual_html/html-document/{}.htdocs/", htdocs_dir))
.join("index.html");
.join("training_menu.html");
fs::write(path, data).unwrap();
}
pub unsafe fn spawn_menu() {
let fname = "index.html";
let fname = "training_menu.html";
let params = MENU.to_url_params();
let page_response = Webpage::new()
.background(Background::BlurredScreenshot)

View file

@ -10,7 +10,7 @@ fn write_menu() {
use crate::common::menu::write_menu;
let folder_path = "../contents.htdocs";
let path = "../contents.htdocs/index.html";
let path = "../contents.htdocs/training_menu.html";
assert!(std::path::Path::new(folder_path).exists(), "Needs required folder: ../contents.htdocs!");

View file

@ -369,7 +369,7 @@ pub fn training_mods() {
mash::init();
ledge::init();
println!("[Training Modpack] Writing menu file index.html");
println!("[Training Modpack] Writing menu file training_menu.html");
unsafe { menu::write_menu(); }
println!("[Training Modpack] Wrote menu file.");
}