1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-02-17 14:40:31 +00:00

Only write HTML on Console (#464)

This commit is contained in:
asimon-1 2023-02-01 07:29:22 -08:00 committed by GitHub
parent 8b804ff402
commit 8866d1a2ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,9 @@ pub fn init() {
unsafe {
FRAME_COUNTER_INDEX = frame_counter::register_counter();
QUICK_MENU_FRAME_COUNTER_INDEX = frame_counter::register_counter();
write_menu();
if !is_emulator() {
write_web_menu_file();
}
}
}
@ -43,7 +45,7 @@ pub unsafe fn menu_condition(module_accessor: &mut smash::app::BattleObjectModul
}
}
pub unsafe fn write_menu() {
pub unsafe fn write_web_menu_file() {
let tpl = Template::new(include_str!("../templates/menu.html")).unwrap();
let overall_menu = get_menu();