mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-05-05 03:49:18 +00:00
Format Rust code using rustfmt
This commit is contained in:
parent
a6bed95de3
commit
3255a0349d
1 changed files with 6 additions and 2 deletions
|
@ -106,7 +106,11 @@ pub fn main() {
|
||||||
log!("Previous menu found, loading from training_modpack_menu.conf");
|
log!("Previous menu found, loading from training_modpack_menu.conf");
|
||||||
unsafe {
|
unsafe {
|
||||||
MENU = get_menu_from_url(MENU, std::str::from_utf8(&menu_conf).unwrap(), false);
|
MENU = get_menu_from_url(MENU, std::str::from_utf8(&menu_conf).unwrap(), false);
|
||||||
DEFAULTS_MENU = get_menu_from_url(DEFAULTS_MENU, std::str::from_utf8(&menu_conf).unwrap(), true);
|
DEFAULTS_MENU = get_menu_from_url(
|
||||||
|
DEFAULTS_MENU,
|
||||||
|
std::str::from_utf8(&menu_conf).unwrap(),
|
||||||
|
true,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log!("Previous menu found but is invalid.");
|
log!("Previous menu found but is invalid.");
|
||||||
|
@ -114,7 +118,7 @@ pub fn main() {
|
||||||
} else {
|
} else {
|
||||||
log!("No previous menu file found.");
|
log!("No previous menu file found.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if is_emulator() {
|
if is_emulator() {
|
||||||
unsafe {
|
unsafe {
|
||||||
DEFAULTS_MENU.quick_menu = OnOff::On;
|
DEFAULTS_MENU.quick_menu = OnOff::On;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue