Skip to content

Recover leading-dot fractions in imported Android settings - #1125

Open
XHYN-PH wants to merge 1 commit into
arcanite24:devfrom
XHYN-PH:upstream/android-decimal-settings
Open

XHYN-PH wants to merge 1 commit into
arcanite24:devfrom
XHYN-PH:upstream/android-decimal-settings

Conversation

@XHYN-PH

@XHYN-PH XHYN-PH commented Nov 22, 2026

Copy link
Copy Markdown

Some older FH4Droid Android builds wrote values such as .5 in FSR softness or camera settings. TOML rejects those values, so a settings file brought over from those builds can lose all of its saved settings at startup.

The startup migration repairs the listed keys only on rows the TOML parser flags. It validates the repaired file before writing it and saves the original bytes to pinyon_shift.toml.android-decimals.bak.

The regression test covers a legacy file with a BOM, CRLF, multiple affected settings, an inline comment, and a multiline string. All 16 startup-config tests and the site build passed.

Recover known FH4Droid graphics and camera settings before loading
the config. Use the TOML parser's rejected row so examples in quoted
text are not rewritten, and back up the original before replacing it.

Tests: 16 startup config tests and the documentation site build.

This branch has not been deployed

No deployments
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