Skip to content

Launcher enhancements#16

Merged
alex73630 merged 2 commits into
masterfrom
feat/launcher-enhancements
Mar 21, 2026
Merged

Launcher enhancements#16
alex73630 merged 2 commits into
masterfrom
feat/launcher-enhancements

Conversation

@alex73630
Copy link
Copy Markdown
Contributor

@alex73630 alex73630 commented Mar 21, 2026

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:

  • Added a new Options screen 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]
  • Introduced state management for the options screen in the App struct, including currently loaded options, selection index, and messages (launcher/src/app.rs). [1] [2] [3]

Peacock Options Core Logic:

  • Added a new options module that defines all known Peacock options, their metadata, and logic for loading/saving options from/to an options.ini file. 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:

  • Refactored the Peacock install/update process to back up all relevant user data (including userdata, plugins, logs, contracts, contractSessions, and options.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:

  • Marked unused directory helper functions in Config as #[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.

@alex73630 alex73630 marked this pull request as ready for review March 21, 2026 13:44
@alex73630 alex73630 merged commit 4bb50b4 into master Mar 21, 2026
1 check passed
@alex73630 alex73630 deleted the feat/launcher-enhancements branch March 21, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant