mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2024-11-21 12:17:35 +03:00
Merge branch 'next' of https://github.com/an-anime-team/an-anime-game-launcher into next
Some checks failed
Check source code / check_source_code (push) Has been cancelled
Some checks failed
Check source code / check_source_code (push) Has been cancelled
This commit is contained in:
commit
3e5ce19931
3 changed files with 18 additions and 2 deletions
|
@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Respect root `.version` file for game version parsing
|
||||
- Added disabling of 2 new telemetry servers
|
||||
|
||||
### Fixed
|
||||
|
||||
- Create cache folder if it doesn't exist
|
||||
|
||||
### Changed
|
||||
|
||||
- Prioritize parsed game version over the API response
|
||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -109,11 +109,11 @@ fn main() -> anyhow::Result<()> {
|
|||
// Setup custom panic handler
|
||||
human_panic::setup_panic!(human_panic::metadata!());
|
||||
|
||||
// Create launcher folder if it isn't
|
||||
// Create launcher folder if it doesn't exist.
|
||||
if !LAUNCHER_FOLDER.exists() {
|
||||
std::fs::create_dir_all(LAUNCHER_FOLDER.as_path()).expect("Failed to create launcher folder");
|
||||
|
||||
// This one is kinda critical buy well, I can't do something with it
|
||||
// This one is kinda critical but well, I can't do anything about it
|
||||
std::fs::write(FIRST_RUN_FILE.as_path(), "").expect("Failed to create .first-run file");
|
||||
|
||||
// Set initial launcher language based on system language
|
||||
|
@ -125,6 +125,12 @@ fn main() -> anyhow::Result<()> {
|
|||
Config::update_raw(config).expect("Failed to update config");
|
||||
}
|
||||
|
||||
// Create cache folder if it doesn't exist.
|
||||
if !CACHE_FOLDER.exists() {
|
||||
std::fs::create_dir_all(CACHE_FOLDER.as_path())
|
||||
.expect("Failed to create cache folder");
|
||||
}
|
||||
|
||||
// Force debug output
|
||||
let mut force_debug = false;
|
||||
|
||||
|
|
|
@ -98,6 +98,12 @@ impl SimpleComponent for AboutDialog {
|
|||
"<li>Added disabling of 2 new telemetry servers</li>",
|
||||
"</ul>",
|
||||
|
||||
"<p>Fixed</p>",
|
||||
|
||||
"<ul>",
|
||||
"<li>Create cache folder if it doesn't exist</li>",
|
||||
"</ul>",
|
||||
|
||||
"<p>Changed</p>",
|
||||
|
||||
"<ul>",
|
||||
|
|
Loading…
Reference in a new issue