Skip to content

Implement dynamic safe mode#6

Merged
BlueWitherer merged 10 commits into
mainfrom
dynamic-safemode
May 18, 2026
Merged

Implement dynamic safe mode#6
BlueWitherer merged 10 commits into
mainfrom
dynamic-safemode

Conversation

@BlueWitherer
Copy link
Copy Markdown
Member

@BlueWitherer BlueWitherer commented May 17, 2026

A system to automate the Safe Mode state of the mod when the player has the setting for it enabled.

In summary, this proposed implementation stores weak references to registered horrible::Option pointers in a new hashmap that are marked as cheating and are enabled by the player, and checks it on API register and user toggle to determine if the player should have safe mode toggled on or off.

This also adds new public functions to the mod's API onto horrible::Option and horrible::OptionManager for cheat detection. Modders will now be able to mark certain options of theirs as potentially cheating. It is recommended they do this for options that interfere with regular gameplay or base game save data.

Several gameplay-based vanilla Horrible Menu options have been marked as cheats as well.

@BlueWitherer BlueWitherer linked an issue May 17, 2026 that may be closed by this pull request
@BlueWitherer BlueWitherer linked an issue May 17, 2026 that may be closed by this pull request
@BlueWitherer BlueWitherer added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels May 18, 2026
@BlueWitherer BlueWitherer merged commit 6eac886 into main May 18, 2026
6 checks passed
@BlueWitherer BlueWitherer deleted the dynamic-safemode branch May 18, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

idea: auto safe mode Idea - add dynamic safe mode

1 participant