Commit Graph
71 Commits
Author SHA1 Message Date
Thierry Crozat 5fd47e4055 AGS: define verbose sprite cache log through a macro function
From upstream a3e762c55b9424ebfc3f311b57ac30a8bcedf945
2022-10-09 18:34:44 +01:00
Thierry Crozat 7f6d7f41d4 AGS: use #if instead of #ifdef for log macros
Sprite Cache and Managed Objects produce a lot of entries in the log currently.
They use a macro to set if they should be on or not, but this macro may be set =0, with the intent of disabling.
Let's instead use #if when testing these macros.

Additionally

- only define DEBUG_MANAGED_OBJECTS if AGS_DEBUG_MANAGED_OBJECTS is true
- adds a new command line flag AGS_DEBUG_SPRITECACHE, which will only define DEBUG_SPRITECACHE if true
- guard indefinition through core/platform.h

From upstream e8bd58da2e09d844068dc087f1da153a693b7aa8
2022-10-09 18:11:02 +01:00
Thierry Crozat fe8c21366a AGS: Added comments to ScriptSystem
From upstream 9698d329e84ce4450aeb0bd3fbc3b43b8c29a3e2
2022-06-21 23:28:01 +01:00
Thierry Crozat 5d9ae41cd6 AGS: Store room objects in std::vector
From upstream 5f3b8eb509c9535c75b401f9b7257f7c7acd0e6d
2022-06-15 22:13:02 +01:00
Paul Gilbert 8cee571515 AGS: Remove duplicated abstract methods from child classes 2022-05-30 15:55:45 -07:00
Paul Gilbert 86c363a8dd AGS: Remove ScriptOverlay.hasInternalRef flag, add actual ref
From update ef0655b601004983d13dab99092d708b080eef23
2022-05-05 22:41:10 -07:00
Paul Gilbert 63c42d42c3 AGS: Fixed ScriptString could be serialized with wrong length
From upstream c00be4f9ee9501aebb0abc81ebbe5b4f2ffb0c0c
2022-05-05 22:41:09 -07:00
Paul Gilbert a2a5f2575d AGS: Reorganized few cc_ headers
From upstream ea1f8b9ece69fc7c49c4d3aa7b9af51c4ca736e5
2022-05-05 22:41:07 -07:00
Paul Gilbert 72f8cbd0dc AGS: fixed few more warnings
From upstream 9de3edd60f1eb3244f6bd3f25d688b75b82a4776
2022-04-27 20:56:17 -07:00
Paul Gilbert 8ecb108f93 AGS: Rename ScriptOverlay's member to better reflect its purpose
From upstream 55a0b521c2f7c269ec4d9f41b4fd7f43d2a85af0
2022-04-27 20:25:30 -07:00
Paul Gilbert 8f01b30061 AGS: Reactored ScriptOverlay, removed duplicate offset variables
From upstream 634d6e20a1d2249de3125774491ff00959294dc8
2022-04-27 20:25:30 -07:00
Paul Gilbert a6f42ad1ab AGS: Fixing various "unused va/arg" warnings + removed empty funcs
From upstream 61771ecd638338806c40d0da2bf1addea06cac90
2022-04-25 21:44:40 -07:00
D G Turner 291fbe51a1 AGS: Fix Cast Qualification GCC Compiler Warnings 2022-04-24 13:53:18 +01:00
Paul Gilbert ecb7e42439 AGS: unserialize dynamic objects using MemoryStream
From upstream c9007679f21e8347d34312b0dd078bbbd29f0de5
2022-04-23 22:14:54 -07:00
Paul Gilbert 51a0c34352 AGS: Serialize dynamic objects using MemoryStream
From upstream ccee37e303af2d9e6ca23b115ff33631ca1244af
2022-04-23 21:13:12 -07:00
Paul Gilbert 6bf83c7f39 AGS: Removed Overlays' arbitrary limit
From upstream 735dcfb14069b38aace4cef9468d44b63349d1bd
2022-03-15 22:28:36 -07:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 3919f53326 ENGINES: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
Paul Gilbert fe231af1ea AGS: Remove already refactored memory pool global 2021-07-31 22:20:29 -07:00
Paul Gilbert c8f827197c AGS: Implemented getting DrawingSurface for room masks
From upstream 087fe51893cc4b61dcfeb84fe72555349b56c411
2021-07-31 14:34:10 -07:00
Paul Gilbert 3c616e3edc AGS: Fix bitmap access in AGSWaves 2021-07-20 21:17:41 -07:00
Paul Gilbert 5aef4bbdf0 AGS: Don't quit if script is trying to remove invalid overlay
From upstream 4e72ba52321c18e9b2568897de6989212d4ae7d9
2021-06-13 21:09:12 -07:00
Paul Gilbert 2f54b35c65 AGS: fixed CreateStringArray() not adding managed string refs
From upstream 37ac36bac03584f2f5c2cacd0a226f5d0c669e9f
2021-06-13 21:09:02 -07:00
Paul Gilbert 6263b9ff11 AGS: Do not store keys with null values in the script Dictionary
From upstream 3c306f46634ff4198189d62bf277765c37f344e5
2021-06-13 21:08:56 -07:00
Paul Gilbert 5f4b6d74e3 AGS: Re-add proper class initializations 2021-06-13 21:08:51 -07:00
Paul Gilbert b104d78888 AGS: Enabling disabled blocks, and making ScummVM needed changes 2021-06-13 21:08:50 -07:00
Paul Gilbert 701396361c AGS: Import of fresh codebase 2021-06-13 21:08:44 -07:00
Paul Gilbert 82ac06065d AGS: Cleanups, changing globals to statics 2021-03-13 21:34:55 -08:00
Paul Gilbert a18be9c938 AGS: Move miscellaneous engine/ac/ globals to Globals 2021-03-12 21:30:58 -08:00
Paul Gilbert b807c94441 AGS: Move pluginobjectreader.cpp globals to Globals 2021-03-12 20:28:30 -08:00
Paul Gilbert 3a0a70bc43 AGS: Move more game.cpp globals to Globals 2021-03-10 21:01:11 -08:00
Paul Gilbert 9c6dd73349 AGS: Move cc_dynamicobject.cpp globals to Globals 2021-03-10 20:43:37 -08:00
Paul Gilbert 2d82d32577 AGS: Move draw.cpp globals to Globals 2021-03-09 21:14:02 -08:00
Paul Gilbert 5d2d8b2a73 AGS: Move cc_serializer.cpp globals to Globals 2021-03-08 21:11:59 -08:00
Paul Gilbert 81976cb994 AGS: Move dialog.cpp globals to Globals 2021-03-08 19:22:34 -08:00
Paul Gilbert 3fb4b083ec AGS: Move audio globals to Globals 2021-03-07 15:54:11 -08:00
Paul Gilbert 1e327a63f8 AGS: Move cc_script.cpp globals to Globals 2021-03-06 20:07:09 -08:00
Paul Gilbert 34c86ce1a1 AGS: Removal of commented out includes 2021-03-06 19:43:13 -08:00
Paul Gilbert de2881e2d1 AGS: Move managedobjectpool.cpp globals to Globals 2021-03-03 20:25:07 -08:00
Paul Gilbert 1686b7e4d9 AGS: Adding virtual destructors 2021-03-02 18:53:52 -08:00
Paul Gilbert acf3a6e080 AGS: Move overlay.cpp globals to Globals 2021-03-01 19:52:51 -08:00
Paul Gilbert 887472c8c1 AGS: Moved a lot of game.cpp globals to Globals 2021-02-28 13:27:21 -08:00
Paul Gilbert ef245e2104 AGS: Move thisroom to Globals 2021-02-28 13:27:21 -08:00
Paul Gilbert 334b2a9d48 AGS: Move play to Globals 2021-02-27 15:31:34 -08:00
Paul Gilbert 1a8ae27b58 AGS: Move game & spriteset into Globals 2021-02-26 21:28:53 -08:00
Paul Gilbert cd017a73c7 AGS: Revert Standardization of number types
This reverts commit a96422af52.
2021-02-16 19:45:02 -08:00
Paul Gilbert a96422af52 AGS: Standardization of number types
This not only simplifies all the use of _t types to the
ScummVM equivalents, it gets rid of the int32 usage in
favor of just int, solving common type clashes with the
Amiga, for which int doesn't match int32
2021-02-13 11:38:55 -08:00
Thierry Crozat 4656a75fc5 AGS: Hash memory address instead of content in ManagedObjectPool
The ManagedObjectPool uses const char * for pointers, and unfortunately
in ScummVM by default we have a hash function on const char * that
computes the hash on the string and not the address. This caused
various issues such as accessing freed memory. This changes matches
what the original interpreter does and fixes crash and scripts errors
in many games.
This matches what the original interpreter does and
2021-02-11 22:55:10 +00:00
Paul Gilbert 0ff8ef405e AGS: Replace = default with {} to hopefully fix riscos compilation 2021-02-07 10:22:06 -08:00
Paul Gilbert d6b8c21557 AGS: Merged engine/plugin/ into plugins/ folder 2021-02-06 16:37:31 -08:00