Skip to content
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

Fix bug where the "Mute background music" setting would reset #1345

Merged
merged 1 commit into from
Jan 1, 2024

Conversation

tGecko
Copy link
Member

@tGecko tGecko commented Dec 25, 2023

Moved bgm_mute setting out of system.json into $sysdir/config/

Background:

Whenever MainUI writes to system.json it clears out the whole file and rewrites it. This deletes the additional bgm_vol key out of system.json.

For example, if you were to mute the background music, then change the menu sound in MainUI settings, the bgm_vol key would be deleted from system.json and the background music would play.

@tGecko tGecko self-assigned this Dec 28, 2023
@tGecko tGecko added the bug in onion Something isn't working label Dec 28, 2023
@tGecko tGecko added this to the v4.3 milestone Dec 28, 2023
@Aemiii91 Aemiii91 added this pull request to the merge queue Jan 1, 2024
Merged via the queue into main with commit 79bc6db Jan 1, 2024
3 checks passed
@Aemiii91 Aemiii91 deleted the fix_bgmMute_not_saving branch January 1, 2024 20:58
@tGecko tGecko changed the title FIX: bgm_mute setting gets deleted by MainUI Fix bug where the "Mute background music" setting would reset Jan 6, 2024
@Aemiii91 Aemiii91 removed the bug in onion Something isn't working label Jan 6, 2024
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.

2 participants