Skip to content

Set the current game mode to whatever a save file was made in when loading. - #760

Merged
tmewett merged 3 commits into
tmewett:releasefrom
ZayadNimrod:issue-747
Dec 27, 2025
Merged

tmewett merged 3 commits into
tmewett:releasefrom
ZayadNimrod:issue-747

Conversation

@ZayadNimrod

Copy link
Copy Markdown
Contributor

Closes #747 .

Does so by squashing wizard mode and easy mode into an enumeration that is stored in the save file, and checking that this flag matches the current mode.

This will break save files, so this branch as based on master.

@ZayadNimrod

Copy link
Copy Markdown
Contributor Author

Is this worth adding to the log in changes/?

@tmewett tmewett left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks, looks like the most sensible solution

There's a slight variation that's possible where we just set the mode to whatever the file says, and don't error out, if you were interested.

My only feedback is one question

Comment thread src/brogue/Rogue.h Resolved
@tmewett

tmewett commented Dec 1, 2025

Copy link
Copy Markdown
Owner

Is this worth adding to the log in changes/?

we usually want every user-facing change, so yes please

@ZayadNimrod
ZayadNimrod force-pushed the issue-747 branch 2 times, most recently from 8edad12 to 4fe662a Compare December 1, 2025 22:28
@ZayadNimrod

ZayadNimrod commented Dec 1, 2025 •

Copy link
Copy Markdown
Contributor Author

There's a slight variation that's possible where we just set the mode to whatever the file says, and don't error out, if you were interested.

Actually now you say this I think I will change the solution.

@ZayadNimrod

Copy link
Copy Markdown
Contributor Author

OK, I've moved to the mode-changing solution instead, and based on release instead, since this shouldn't break anything from the user's perspective.

@ZayadNimrod ZayadNimrod changed the title Refuse to load files made in Easy mode if not in Easy mode and vice versa Set the current game mode to whatever a save file was made in when loading. Dec 2, 2025
@tmewett
tmewett changed the base branch from master to release December 27, 2025 11:51
@tmewett
tmewett merged commit b612f6c into tmewett:release Dec 27, 2025
brturn pushed a commit to brturn/BrogueCE that referenced this pull request Jan 17, 2026
* Coalesce Wizard and Easy mode into a single field

This will be useful when we check that a save was made in the same
mode as the one the game is in.

* Check the easy mode flag matches when loading a game.

* Document the change made to the game loading.
@brturn brturn mentioned this pull request Feb 7, 2026
@nstoddard nstoddard mentioned this pull request Mar 22, 2026
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.

Easy mode not part of save file

2 participants