Launcher enhancements#16
Merged
Merged
Conversation
Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new "Peacock Options" screen to the launcher, enabling users to view and modify Peacock-specific configuration options through the UI. It also refactors the backup and restore logic for Peacock installations to be more robust and comprehensive. The most important changes are as follows:
Peacock Options UI Integration:
Optionsscreen and menu entry, allowing users to access and edit Peacock options from within the launcher (launcher/src/app.rs,launcher/src/main.rs,launcher/src/ui/main_menu.rs). [1] [2] [3] [4] [5] [6]Appstruct, including currently loaded options, selection index, and messages (launcher/src/app.rs). [1] [2] [3]Peacock Options Core Logic:
optionsmodule that defines all known Peacock options, their metadata, and logic for loading/saving options from/to anoptions.inifile. This includes support for boolean and enum options, cycling values, and preserving unknown options and comments (launcher/src/core/options.rs,launcher/src/core/mod.rs). [1] [2]Peacock Install/Update Improvements:
userdata,plugins,logs,contracts,contractSessions, andoptions.ini) into a single backup directory, and restore them after updating. This approach is more comprehensive and less error-prone than the previous method (launcher/src/core/peacock.rs). [1] [2]Miscellaneous:
Configas#[allow(dead_code)]to suppress warnings (launcher/src/core/config.rs).These changes together greatly improve the configurability and robustness of the Peacock integration in the launcher.