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 digitall, 10 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, 10 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, 7 years ago

Component: Ports

comment:4 by digitall, 6 years ago

Component: PortsPort: iOS

comment:5 by criezy, 4 years 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.