Fix softlocking on attempt to delete save games. #472
Draft
Boom244 wants to merge 2 commits intosmartcmd:mainfrom
Draft
Fix softlocking on attempt to delete save games. #472Boom244 wants to merge 2 commits intosmartcmd:mainfrom
Boom244 wants to merge 2 commits intosmartcmd:mainfrom
Conversation
TODO: Revisit and merge when 4JStorage has been fully decompiled and re-integrated.
Collaborator
|
4JLibs is 100% decompiled now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is a stopgap solution designed to temporarily prevent game softlocking. The root of the issue lies in 4JStorage, which is currently being decompiled by the community. This PR, at the moment, simply prevents the game from softlocking when attempting to delete a save.
Changes
Toggled
m_bIgnoreInputinUIScene_LoadOrJoinMenu::DeleteSaveDialogReturnedafter the call toC4JStorage::DeleteSaveDataso that attempting to delete a save does not softlock the game.Previous Behavior
Before, on attempting to delete a save game, the game would lock up and not allow you to navigate the Saves menu afterward, effectively softlocking you and forcing you to relaunch it.
Root Cause
I suspect there is behaviour in
C4JStorage::DeleteSaveDatathat is supposed to allow the player to reclaim control of the menu that is currently non-functional. Further investigation will have to be done when the library is decompiled.New Behavior
Deleting your games still doesn't delete them (as per above), but you are no longer softlocked.
Fix Implementation
Adding this right below the call to
C4JStorage::DeleteSaveData:pClass->m_bIgnoreInput = false;allows the player to reclaim control of the Saves menu.
Related Issues