Skip to content

Refactor hardcore FPGA bits application logic#29

Open
J-DSilva wants to merge 1 commit into
odelot:masterfrom
J-DSilva:hardcore-mode-fix
Open

Refactor hardcore FPGA bits application logic#29
J-DSilva wants to merge 1 commit into
odelot:masterfrom
J-DSilva:hardcore-mode-fix

Conversation

@J-DSilva

Copy link
Copy Markdown

When playing on the NES core I found that even though hardcore mode was disabled the option to load save states was disabled. This was due to the setting in achievements.cfg being ignored and Main_MiSTer always sending set_hardcore(1). This fix introduces some logic to properly set the flag so the console core will behave properly.

Refactor hardcore mode handling to always set on/off state based on achievements_hardcore_active() status.
@J-DSilva

Copy link
Copy Markdown
Author

Full disclosure: I used AI to find and fix this issue. I did compile and test the fix with both hardcore=0 and 1 and found no issues.

@odelot

odelot commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Sorry for the late reply, I missed the PR notification. I will analyse the PR this weekend and send you a proper answer. Thanks

@odelot

odelot commented Jun 15, 2026

Copy link
Copy Markdown
Owner

I think the latest version already fixed this issue.

I have tested with

hardcore=0
force_hardcore=0

and could save and restore state

Can you confirm this behaivor with the latest version? than we can close the issue.

Thank you very much to report and try to help

@J-DSilva

Copy link
Copy Markdown
Author

I did a quick test with 1.3.0 and the problem reappeared for me using the RA_NES 1.4 core. The Restore State option in the menu is greyed out, and the hot keys do not work. Saving states appears to be fine. This is with:

hardcore=0
force_hardcore=0

I switched back to my build and restore states is working fine again.

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