mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-06-08 04:20:36 +00:00
* Grab releases from Github and install * Refactor * Fix crash * Work on fixing install() crash * Fix the crash by increasing stack size * Block main() execution on the auto-updater * Improve error handling * Delete hash.txt * Fix get_update_policy() * Use current time as default last_update_version; Compare publish date to last_update_version to determine if update should be applied. * Use skyline_web dialogs for user_wants_to_install. Use default selections on emulator instead. * Fix some logic * Convert CURRENT_VERSION to a Mutex; implement functions to update the config file * Adjust logging * Remove unneeded file * Allow unwrap after is_some() check * Fix format * Auto-updater (squashed) * Move update policy from config file to menu * Skip version check on emulator * Rustfmt, clippy --------- Co-authored-by: jugeeya <jugeeya@live.com>
15 lines
964 B
Rust
15 lines
964 B
Rust
pub const ULTIMATE_ROOT: &str = "sd:/ultimate/";
|
|
|
|
pub const LEGACY_TRAINING_MODPACK_ROOT: &str = "sd:/TrainingModpack";
|
|
pub const TRAINING_MODPACK_ROOT: &str = "sd:/ultimate/TrainingModpack";
|
|
pub const TRAINING_MODPACK_TOML_PATH: &str = "sd:/ultimate/TrainingModpack/training_modpack.toml";
|
|
pub const SAVE_STATES_TOML_PATH: &str = "sd:/ultimate/TrainingModpack/save_states.toml";
|
|
pub const DEV_TOML_PATH: &str = "sd:/ultimate/TrainingModpack/dev.toml";
|
|
pub const VERSION_TXT_PATH: &str = "sd:/ultimate/TrainingModpack/version.txt";
|
|
pub const LAYOUT_ARC_PATH: &str = "sd:/ultimate/TrainingModpack/layout.arc";
|
|
pub const MENU_OPTIONS_PATH: &str = "sd:/ultimate/TrainingModpack/training_modpack_menu.conf";
|
|
pub const LEGACY_MENU_OPTIONS_PATH: &str =
|
|
"sd:/ultimate/TrainingModpack/training_modpack_menu.json";
|
|
pub const MENU_DEFAULT_OPTIONS_PATH: &str =
|
|
"sd:/ultimate/TrainingModpack/training_modpack_menu_defaults.conf";
|
|
pub const UNPACK_PATH: &str = "sd:/";
|