Commit Graph
137148 Commits
Author SHA1 Message Date
Littleboy 21fa0d155e ASYLUM: Fix some potential out of bound array accesses 2021-05-17 15:37:21 +02:00
Littleboy 156ffb1276 ASYLUM: Simplify Screen::setPaletteGamma() 2021-05-17 15:37:21 +02:00
Littleboy 341bf99614 ASYLUM: Cleanup Screen class 2021-05-17 15:37:21 +02:00
Littleboy bdec064f12 ASYLUM: More cleanup of Menu class 2021-05-17 15:37:21 +02:00
Littleboy f929f58e9a ASYLUM: Cleanup Actor class 2021-05-17 15:37:21 +02:00
Littleboy 2f18c1cb36 ASYLUM: Misc. cleanups
- Document some debug calls
 - Remove unused parameters names
 - Add const as needed
 - Change some coordinates values to int16
2021-05-17 15:37:21 +02:00
Littleboy d19ec57732 ASYLUM: Fix memory leak in ResourceManager
The ResourceManager was never deleting the file data buffers, only removing the entries from the cache.
Thanks to digitall for the patch.
2021-05-17 15:37:20 +02:00
Littleboy 734afc0bbc ASYLUM: Change kResourceInvalid to be -1 2021-05-17 15:37:20 +02:00
Littleboy 46f5eb05c3 ASYLUM: Implement slightly better switching of scenes through the debugger 2021-05-17 15:37:20 +02:00
Littleboy ee40059ed7 ASYLUM: Fix a bug in ScriptManager::opcodeJumpIfActorCoordinates() 2021-05-17 15:37:20 +02:00
Littleboy b67ba25820 ASYLUM: Add missing call to Special::run() in Actor::update() 2021-05-17 15:37:20 +02:00
Littleboy fa9083c250 ASYLUM: Implement missing priority code in Scene::processUpdateList()
This allows some scenes to progress further
2021-05-17 15:37:20 +02:00
Alex Bevilacqua 4113ef8255 ASYLUM: Silence an analysis warning by adding a virtual destructor to SharedData 2021-05-17 15:37:20 +02:00
Littleboy 8f2a9464e0 ASYLUM: Fix initialization of second portrait in Encounter::initPortraits()
- Rename keyword start index member
2021-05-17 15:37:19 +02:00
Littleboy 919afab0bf ASYLUM: Fix running of encounters from the debug console
- Pass proper data to the Encounter::run() function
 - Add encounter data for the first 3 scenes
2021-05-17 15:37:19 +02:00
Littleboy 46d189ec9f ASYLUM: Add more error handling to script opcodes manipulating objects 2021-05-17 15:37:19 +02:00
Littleboy 72d5a60e3b ASYLUM: Fix regression in loading of scenes from the console 2021-05-17 15:37:19 +02:00
Littleboy 03cd0ddf56 ASYLUM: Fix loading of saved games
- Do not add more actors/objects/actions when loading data (the correct scene was loaded and contains the data already)
 - Do not reset the script queue and empty the script array before loading the script list
2021-05-17 15:37:19 +02:00
Littleboy 8032becd15 ASYLUM: Only handle final version savegames until we can verify all savegames are compatible 2021-05-17 15:37:19 +02:00
Littleboy c3f531c272 ASYLUM: Add padding when saving strings 2021-05-17 15:37:19 +02:00
Littleboy 4b7e86f226 ASYLUM: Fix problems with savegames in Menu
- Fix crash when trying to save before a scene is loaded
 - Fix typo preventing the deletion of saved games
2021-05-17 15:37:18 +02:00
Littleboy f10091a616 ASYLUM: Implement saving of script data 2021-05-17 15:37:18 +02:00
Littleboy ba2237ae0b ASYLUM: Implement saveLoadWithSerializer() for EncounterItem and EncounterVariables 2021-05-17 15:37:18 +02:00
Littleboy 6eb0271440 ASYLUM: Implement saveLoadWithSerializer() for most of the puzzles 2021-05-17 15:37:18 +02:00
Littleboy 34b50ab2f3 ASYLUM: Add stubs for puzzles saveLoadWithSerializer() 2021-05-17 15:37:18 +02:00
Littleboy b1493f5be3 ASYLUM: Move puzzles handling to Puzzles class (formerly PuzzleData) 2021-05-17 15:37:18 +02:00
Littleboy f09c34bc51 ASYLUM: Cleanup loading/saving of scene data 2021-05-17 15:37:17 +02:00
Littleboy 639ccdaff9 ASYLUM: Implement ActionArea::saveLoadWithSerializer() 2021-05-17 15:37:17 +02:00
Littleboy 059c8820c3 ASYLUM: Implement saveLoadWithSerializer() for Actor and ActorData
- Move loading of actor data to a struct member function
2021-05-17 15:37:17 +02:00
Littleboy ebfd32685b ASYLUM: Implement Object::saveLoadWithSerializer() 2021-05-17 15:37:17 +02:00
Littleboy d6883a89a1 ASYLUM: Implement WorldStats::saveLoadWithSerializer()
- Add stubs for saveLoadWithSerializer() for ActionArea, Actor, ActorData and Object classes
2021-05-17 15:37:17 +02:00
Littleboy 70460193ad ASYLUM: Skip saving of viewed movies as part of the shared data
We load it directly from an external file and the original overwrites the data with the one from the external file
2021-05-17 15:37:17 +02:00
Littleboy 8370719912 ASYLUM: Move Encounter disablePlayerOnExit flag to SharedData 2021-05-17 15:37:17 +02:00
Littleboy f106c50b36 ASYLUM: Move actorIndex to SharedData 2021-05-17 15:37:16 +02:00
Littleboy 8f470f1fcb ASYLUM: Rename flag set when we are editing a savegame name 2021-05-17 15:37:16 +02:00
Littleboy 072fd08206 ASYLUM: Accept keypad enter to validate a savegame name 2021-05-17 15:37:16 +02:00
Littleboy d1b6bbabfd ASYLUM: Move skipScriptProcessing and isEncounterRunning flags to SharedData 2021-05-17 15:37:16 +02:00
Littleboy c935ba9eae ASYLUM: Prefix debug output with type 2021-05-17 15:37:16 +02:00
Littleboy ecca126022 ASYLUM: Better debug output when writing/loading savegames 2021-05-17 15:37:16 +02:00
Littleboy 1a350dd104 ASYLUM: Handle empty savegame files 2021-05-17 15:37:16 +02:00
Littleboy 54ad18711d ASYLUM: Implement ScriptManager::saveLoadWithSerializer() 2021-05-17 15:37:15 +02:00
Littleboy 99f2521155 ASYLUM: Cleanup Menu class 2021-05-17 15:37:15 +02:00
Littleboy 78f275d796 ASYLUM: Cleanup Scene and related classes 2021-05-17 15:37:15 +02:00
Littleboy 5b0da5965c ASYLUM: Cleanup more base classes 2021-05-17 15:37:15 +02:00
Littleboy f8d11e354a ASYLUM: Cleanup script manager 2021-05-17 15:37:15 +02:00
Littleboy 44540643e8 ASYLUM: Cleanup base classes
- Made some public members of cursors private and add accessors
 - Add const modifiers as needed
 - Add missing casts
 - Add some null-pointers checks
 - etc.
2021-05-17 15:37:15 +02:00
Littleboy b9cb91d016 ASYLUM: Cleanup puzzles
- Add missing casts
 - Remove unused parameters
 - Add consts modifiers
 - Fix formating
 - etc.
2021-05-17 15:37:15 +02:00
Littleboy 0f14a09cd4 ASYLUM: Remove useless includes 2021-05-17 15:37:14 +02:00
Littleboy ff0d80587f ASYLUM: Change text coordinates parameters to use Common::Point 2021-05-17 15:37:14 +02:00
Alex Bevilacqua 2e9ab6929a ASYLUM: revert commits aac7e28, 326ec63 and bfe63c2 2021-05-17 15:37:14 +02:00