Commit Graph
49 Commits
Author SHA1 Message Date
Thierry Crozat c1bfa68725 AGS: removed redundant global variable numBreakpoints
From upstream 5cb25832b1da27049fc3531f00aeb5727b98fc38
2022-10-09 18:45:15 +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
D G Turner a69311b4c1 AGS: Fix Signed vs. Unsigned Comparison GCC Warning 2022-06-24 23:12:06 +01:00
Thierry Crozat b042a703d2 AGS: Hotfixed potential buffer overflow in check_for_messages_...
From upstream 22b7fe46365ba03863dc149248b7bbd6a3fbbc45
2022-06-24 20:54:47 +01:00
Thierry Crozat 29505204c1 AGS: Turned want_exit and abort_engine vars from int to bool
From upstream e924778ce3f88a4c821a4eecfea8edc353a6807b

In ScummVM they were already bools, but where still assigned values
of 0 and 1 instead of false and true in some places.
2022-06-23 23:57:27 +01:00
Thierry Crozat dd9df96e74 AGS: Tidied code around debugger init a tiny bit, added log
From upstream 408f139d86b5d812fe3674901cadae6ae6573036
2022-06-23 23:57:26 +01:00
D G Turner 861612f113 AGS: Fix Temporary Script Name Buffer Size to Match Breakpoint Name Size
This mismatch was causing several GCC format overflow / truncation
warnings.
2022-06-20 01:02:44 +01:00
Thierry Crozat e90fb00412 AGS: Replaced more strcpy with snprintf, for safety
From upstream 1b6cf053ebbe85e7ba6c5828e2582d757503bc16
2022-06-19 20:50:24 +01:00
Paul Gilbert faa858a55b AGS: Fixed sending non-error messages to debugger
From upstream 3b43353986ca91ecad9c5270e362c8716effaf37
2022-05-05 22:41:07 -07:00
Paul Gilbert 8e132f7b3f AGS: cc_error returns stack from all script threads
From upstream 9e76800d668d8d0af7d47d815e6d1b781c7601f6
2022-05-05 22:41:07 -07:00
Paul Gilbert 16d0d89787 AGS: Grouped ccError variables in a struct
From upstream 48ef387226e4d420dc62d0a0b204cf4cd89a1139
2022-05-05 22:41:07 -07:00
Paul Gilbert a2a5f2575d AGS: Reorganized few cc_ headers
From upstream ea1f8b9ece69fc7c49c4d3aa7b9af51c4ca736e5
2022-05-05 22:41:07 -07:00
Paul Gilbert 480be2134b AGS: Added script instance thread stack, replacing current_instance
From upstream f3443cb7a4ae5858e5d2d28131aaf6cf138bc0ec
2022-05-05 22:41:06 -07:00
Paul Gilbert 23a2e8c709 AGS: More config parse helpers: reading boolean ints, min-max range
From upstream 9737cabb8e7562122f8c471793bd994685d72bfe
2022-04-27 20:38:38 -07:00
Paul Gilbert 7b0bfee7cc AGS: Renamed and moved INIread/write functions for proper org&style
From upstream 18398a7d695e81575218380e1bba28010c239fdc
2022-04-27 20:25:31 -07:00
Paul Gilbert e60335a58a AGS: In log config fixed missing group letter id for "script"
From upstream 8d5bb8ad1cc6ef79e0c6b8c60ba0d48751bd659e
2022-04-25 21:58:49 -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
Paul Gilbert eafed5070a AGS: Log script's FileOpen command results
From upstream ad39a4336829927ae47516d85dffd5dcde61584d
2022-04-05 20:42:56 -07:00
Paul Gilbert 8d8b786079 AGS: Don't mkdirs in the platform driver, return FSLocation instead
From upstream 13312e9a1d3a427f49ccfe4e78f7d0736123a809
2022-03-31 20:04:43 -07:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paul Gilbert 14b53d9a9e AGS: Moved plugins globals into Globals 2021-07-18 17:07:02 -07:00
Paul Gilbert eb1e337edd AGS: Removed String's "const char*" conversion operator
From upstream 7c426674e7e53bffe9120f8ffc059b77fa03a606
2021-06-13 21:08:59 -07:00
Paul Gilbert 701396361c AGS: Import of fresh codebase 2021-06-13 21:08:44 -07:00
Paul Gilbert 3a0a70bc43 AGS: Move more game.cpp globals to Globals 2021-03-10 21:01:11 -08:00
Paul Gilbert 462f408bbd AGS: Move some global strings to statics 2021-03-08 21:12:00 -08:00
Paul Gilbert bb488f2d58 AGS: Move dynamicsprite.cpp globals to Globals 2021-03-08 21:12:00 -08:00
Paul Gilbert 37b563ef35 AGS: Move game globals to Globals 2021-03-07 19:23:24 -08:00
Paul Gilbert 1e327a63f8 AGS: Move cc_script.cpp globals to Globals 2021-03-06 20:07:09 -08:00
Paul Gilbert 21e9dde4ca AGS: Move cc_error.cpp globals to Globals 2021-03-06 15:11:39 -08:00
Paul Gilbert fd5c11f382 AGS: Move debug globals to Globals 2021-03-06 15:11:38 -08:00
Paul Gilbert b6dd902163 AGS: Move script.cpp globals into Globals 2021-02-28 16:41:48 -08:00
Paul Gilbert c3d96c399c AGS: Move debug.cpp globals to Globals 2021-02-28 16:41:48 -08:00
Paul Gilbert 0ef2ac659b AGS: Move DbgMgr 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
Cameron Cawley ff276f88ff AGS: Refactor audio code 2021-02-08 18:03:22 -08:00
Paul Gilbert 4f316995a5 AGS: Refactor use of NAN to an arbitrary constant 2021-02-06 19:14:48 -08:00
Paul Gilbert d6b8c21557 AGS: Merged engine/plugin/ into plugins/ folder 2021-02-06 16:37:31 -08:00
Paul Gilbert ec02e1a118 AGS: Move debugger globals to Globals 2021-02-06 16:37:31 -08:00
Paul Gilbert cf9bbb2bb2 AGS: Beginnings of new Globals class 2021-02-06 16:37:31 -08:00
Paul Gilbert 6da17f421b AGS: Matching keycodes to Allegro in original 2021-02-06 16:37:31 -08:00
Paul Gilbert 69b6cfab29 AGS: Move std/ folder into lib/ 2021-02-06 16:37:31 -08:00
Paul Gilbert 9a78e04039 AGS: Beginnings of engine/ inclusion 2021-02-06 16:37:31 -08:00
Paul Gilbert a7a9ca0543 AGS: Adding AGS3 namespace to cpp files 2021-02-06 16:37:31 -08:00
Paul Gilbert d8e471b03c AGS: Changing Common namespace to Shared 2021-02-06 16:37:31 -08:00
dreammaster 8026e4bb30 AGS: Run astyle formatting 2021-02-06 16:37:31 -08:00
Paul Gilbert bd6a58d1a1 AGS: Adding ScummVM comment headers 2021-02-06 16:37:31 -08:00
Paul Gilbert a60d290a08 AGS: Initial addition of engine/ and shared/ folders 2021-02-06 16:37:31 -08:00