Opened 6 years ago

Closed 7 weeks ago

#7871 closed enhancement (fixed)

IPHONE: Store running game state when switching tasks

Reported by: SF/andwan0 Owned by: criezy
Priority: normal Component: Port: iOS
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 digitall, 6 years ago

Component: Engine: SCUMM
Summary: iPad/iPhone switching tasks: keep/persist running game stateIPHONE: Store running game state when switching tasks

comment:2 by digitall, 6 years ago

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! :)

comment:3 by csnover, 3 years ago

Component: Ports

comment:4 by digitall, 2 years ago

Component: PortsPort: iOS

comment:5 by criezy, 7 weeks ago

Owner: set to criezy
Resolution: fixed
Status: newclosed

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.

Note: See TracTickets for help on using tickets.