INDY3/FOA: series IQ with ScummVM GUI
|Reported by:||SF/tobigun||Owned by:||fingolfin|
|Cc:||Game:||Indiana Jones 3|
At the moment support for the series IQ is limited. For Indy3 savegames must be loaded via the original save/load dialog to update the series IQ in the IQ-file. For Indy4 the 'i'-key must be pressed after loading a savegame to make sure the IQ-file is updated.
This patch updates the series IQ and IQ-file directly after loading a savegame.
As Indy3 calculates and stores the series IQ only when the "LOAD" or "SAVE" button was pressed (script room-14-206) we can either execute room-15-206 or reimplement the calculation algorithm. Executing the script is rather difficult as room 14 must be loaded in advance. In addition it depends on script 9 which initializes the save/load dialog. For example, it creates resource-string 9 used for the IQ-string. It is simpler to reimplement the series point calculation. This is done by updateIQPoints(). This function is called after loading/saving a savegame and when 'i' is pressed.
For Indy4 we can simply call script 145 which is also called when pressing 'i'. It loads the IQ-file, recalculates the series IQ and stores it back. It just uses local vars and the series IQ var so no side effects should occur.
Ticket imported from: #2676453. Ticket imported from: patches/1086.