Fixes issue where loading save states could result in invalid cached inputs
This commit is contained in:
parent
442056d8fe
commit
b686f2aa5d
@ -1 +1 @@
|
||||
Subproject commit 9d05e42435288ce103f2cb5ed65c18f9630a0406
|
||||
Subproject commit e936f39a694d0e1631ddceaccba6adcfda09474a
|
||||
@ -1 +1 @@
|
||||
Subproject commit 46f712f9dbdcbb465d6d0dd48239df6c509a090f
|
||||
Subproject commit 223207b30e26e4386090be1197bf88caf828f60c
|
||||
@ -1 +1 @@
|
||||
Subproject commit 63caf73f435d72fe0ad80112f4e10c6a674f9068
|
||||
Subproject commit ad5289a0d3fc97a2e2b00fe54fd23bce96e28778
|
||||
@ -565,7 +565,16 @@ extension GameViewController: SaveStatesViewControllerDelegate
|
||||
print(error)
|
||||
}
|
||||
|
||||
self.emulatorCore?.updateCheats()
|
||||
// Reactivate sustained inputs
|
||||
for gameController in self.emulatorCore?.gameControllers ?? []
|
||||
{
|
||||
guard let sustainedInputs = self.sustainedInputs[ObjectIdentifier(gameController)] else { continue }
|
||||
|
||||
for input in sustainedInputs
|
||||
{
|
||||
self.reactivateSustainedInput(input, for: gameController)
|
||||
}
|
||||
}
|
||||
|
||||
self.pauseViewController?.dismiss()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user