Opened 10 years ago
Closed 4 years ago
#7871 closed feature request (fixed)
IPHONE: Store running game state when switching tasks
Reported by: | SF/andwan0 | Owned by: | criezy |
---|---|---|---|
Priority: | normal | Component: | Port: iOS |
Version: | Keywords: | ||
Cc: | Game: |
Description
If for whatever reason, I switch task to safari then switch back to ScummVM, my game state is lost and it resets back to game launcher.
Would be handy to keep the running game state.
Ticket imported from: feature-requests/688.
Change History (5)
comment:1 by , 10 years ago
Component: | Engine: SCUMM |
---|---|
Summary: | iPad/iPhone switching tasks: keep/persist running game state → IPHONE: Store running game state when switching tasks |
comment:2 by , 10 years ago
comment:3 by , 7 years ago
Component: | → Ports |
---|
comment:4 by , 6 years ago
Component: | Ports → Port: iOS |
---|
comment:5 by , 4 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
I have now implemented game state save and restore when switching tasks on iOS. This only works with engines that support autosaving and are in a state that can be saved when switching task.
Note that the scumm engine use some custom autosave code and not the generic one. After adding a few layers of hacks to try to make it work, and not quite managing it, I gave up. So game state save will not work with any SCUMM games.
API and documentation on supporting "task suspension" is here: https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html
Patches are welcome! :)