Repository navigation
Bootstrap Falcon BMS Config editor (WPF, .NET Framework 4.8) - #1
Merged
Merged
Conversation
- Core: line-preserving cfg parser/editor, value conversion and validation (ranges, enums, hex ints, fancy quotes, feature-flag regexes), 3-file merge with last-writer-wins, Launcher cut-line handling, install discovery - UI: master/detail window with search, category and modified filters, VR view toggle, System/Light/Dark themes, full screen, auto-save - Unit tests (net8, links Core sources) and a Windows CI build Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KaEsnLMDyw72GZ8a6ZxAGq
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.
First version of the cfg editor described in
CLAUDE.md. The build produces a singleConfig.exefor .NET Framework 4.8, AnyCPU with 64-bit preferred. It has no runtime dependencies beyond Windows and .NET Framework.Core (
src/BmsConfig/Core/)CfgDocumentparses and edits a cfg file line by line. It keeps comments, blank lines, unrecognized lines and ordering exactly as they were. An edit replaces only the value, so whitespace and the trailing comment stay. New lines go just above the Launcher cut line in User.cfg. Files are read as UTF-8 with or without a BOM, and written without one. Original line endings are kept.ValueConverterhandles:g_b/g_n/g_f/g_sprefix of the name;Range:[min-max]andRange:[0-]limits, andEnum:[...]labels;0x...);ConfigSetmergesFalcon BMS.cfg, thenUser.cfg, thenVR.cfg, with the last writer winning. Params that aren't inFalcon BMS.cfgare filed under "Other". Before each save, the target file is re-read from disk, so a change another tool made in the meantime isn't lost. The feature flags can be written only toFalcon BMS.cfg.BmsInstallsreadsHKLM\SOFTWARE\WOW6432Node\Benchmark Simsthrough the 32-bit registry view, so the lookup works for both 32-bit and 64-bit processes.UI
HKCU\Software\BmsConfig. The title bar turns dark in dark mode.Tests / CI
tests/BmsConfig.Testshas 46 xUnit tests. The project targets net8 and links the Core source files directly, so the tests run on any OS..github/workflows/build.ymlruns the tests and buildsConfig.exeonwindows-latest, and uploads the exe as an artifact.Testing
Config.exeis available as an artifact.Follow-ups
Config.icoandLogo.pngwith the real artwork.Generated by Claude Code