Added `--run-game` and `--just-run-game` flags which can be used to run the game
1st will launch the game if launcher state is `Launch`.
Otherwise launcher window will appear
2nd will launch the game on `Launch` state,
as well as on `PredownloadAvailable` and `PatchAvailable(Patch::NotAvailable)`.
As well process stopping was changed by proper app exiting
by calling `relm4::main_application().quit()`
Improved `i18n` mod to list supported languages and some other stuff
As well was added `get_default_lang` function
which will return language key based on current system language.
This function is called at the first launcher start
to update default `launcher.language` config property, so user will immediately
have proper language in initial setup window
Added blank first run window with welcome page. On first start launcher will create launcher folder and `.first-run` file inside if needed. If file exists - launcher will open first run window instead of the main one (to prevent further data loadings in `init` functions)
- now launcher can use `RUST_LOG` variable to filter logs
- removed "called event" logs from wine/dxvk/progress bar components
Also:
- fixed constant "remove_css_class" gtk errors
- now launcher is able to load some heavy stuff in background
so they will not freeze it during start
- patch status and latest game data is loaded in background from now
- renamed some components and their messages types for consistency
- classic style loads its background from "config's_tmp_path/background"
so from "launcher folder/background" by default
- icons will be changed in some future
- stdout logs got rid of rustls messages and now are pretty styled
- logs are saved into the `debug.log` file in the launcher folder
they're not filtered and contain all the messages
- toasts timeout fixed to 5 seconds
- added "save" button which will, well, not save logs
but open `debug.log` file using `xdg-open`
- now missing fields will be automatically filled;
excess fields - removed.
thanks to new code structure I can easily create
new fields or rename old ones
- improved `WineLang` enum; now launcher loads languages list dynamically
from this enum so I can easily add support for new languages
- added "Open launcher folder" button to settings
- removed `glib::Downgrade` trait from all the `App`s' `Value`s
- removed `tasks` mod; removed `tokio` dependency;
rewritten `OpenPreferencesPage` to work with threads instead of futures
- added `opt-level = 3` to release profile
- added automatic downloading if you already clicked "download" button
so e.g. you don't need to press "download" button two times to download the game
and then download its voiceover
- reduced amount of action calls
- added "WIP" tooltips for progress pause buttons
- added new wine versions
- added automatic default folder creation
- added `latest` methods for DXVK/Wine versions
- added `wine_prefix` mod with `WinePrefix` struct to manage what do you think what
- spent lots of time trying to make the launcher
download default wine version,
create prefix and apply DXVK
but it just pauses actions flow after
~400 KB of downloaded wine version progress
it fixes issue with huge data downloading. You can specify `null` as temp path
and then default system temp folder will be used
Also added `unwrap` everywhere I could add it
just not to see warnings in the code editor