-
Notifications
You must be signed in to change notification settings - Fork 92
Hide OpenKh Game Engine from setup wizard unless Dev View is enabled #1243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughChanges add a visibility control feature to the setup wizard UI by introducing a new ViewModel property that conditionally displays a ComboBox item based on development mode, and update the default GameEdition configuration value to 1. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
OpenKh.Tools.ModsManager/Services/ConfigurationService.csOpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.csOpenKh.Tools.ModsManager/Views/SetupWizardWindow.xaml
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-11-21T23:23:49.389Z
Learnt from: shananas
Repo: OpenKH/OpenKh PR: 1226
File: OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs:0-0
Timestamp: 2025-11-21T23:23:49.389Z
Learning: In OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs, the PageRegion wizard page is specific to KH2 PS2 ISO only. The WizardPageAfterGameData should only be set to PageRegion when IsoLocationKH2 is not null, and should skip this page for KH1 and Recom ISOs.
Applied to files:
OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.csOpenKh.Tools.ModsManager/Services/ConfigurationService.csOpenKh.Tools.ModsManager/Views/SetupWizardWindow.xaml
📚 Learning: 2025-11-21T23:50:34.439Z
Learnt from: Some1fromthedark
Repo: OpenKH/OpenKh PR: 1226
File: OpenKh.Tools.ModsManager/Views/SetupWizardWindow.xaml:153-175
Timestamp: 2025-11-21T23:50:34.439Z
Learning: In the OpenKH codebase, the game identifier for Kingdom Hearts Re:Chain of Memories uses PascalCase "Recom" (not lowercase "recom") as the established standard throughout the codebase, including in GameService.cs, MainViewModel.cs, and XAML CommandParameter bindings. This differs from the lowercase convention used for "kh1" and "kh2", but "Recom" is the consistent identifier for this game across the project.
Applied to files:
OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs
🧬 Code graph analysis (1)
OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs (1)
OpenKh.Tools.ModsManager/Services/ConfigurationService.cs (2)
ConfigurationService(12-617)ConfigurationService(109-149)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Analyze (csharp)
- GitHub Check: build
🔇 Additional comments (2)
OpenKh.Tools.ModsManager/Services/ConfigurationService.cs (1)
33-33: LGTM! Appropriate default for non-developer users.Setting the default value to 1 (PCSX2) ensures that new users who haven't configured the application will default to PCSX2 rather than the OpenKH Game Engine option. This aligns well with the PR objective of hiding the experimental OpenKH Game Engine from non-developers.
OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs (1)
228-228: Implementation looks good and follows existing patterns.The OpenKhGameEngineVisible property correctly returns the appropriate visibility state based on DevView. While you mentioned in the PR description that you "probably should access the ConfigurationService variable directly and store it somewhere in setup wizard," the current implementation is actually consistent with other visibility properties in this class (e.g., OpenKhGameEngineConfigVisibility at line 366, Pcsx2ConfigVisibility at line 380).
One note: This property doesn't raise OnPropertyChanged when DevView changes. If DevView can be toggled during wizard execution, you'd need to add notification. However, this seems unlikely in the wizard context, so the current implementation should be fine.
Delta-473
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
i probably shouldnt access the ConfigurationService variable directly and store it somewhere in setup wizard but
also the default is now emulator I dont trust someone wont see all the info on the PC option and not switch to emulator if using emulator
Summary by CodeRabbit
Bug Fixes
New Features
✏️ Tip: You can customize this high-level summary in your review settings.