Walter Agazzi
0c4d929d6d
AGS: Engine: hotfix certain platforms to not save "warnings.log" in cwd
...
ScummVM restricts file operations to the savedir, so this is added for the sake of completeness.
Partially from upstream 965d4ecd11b64b7bedb5f4cfc570cc7211be5332
2024-10-30 18:07:42 +02:00
Walter Agazzi
9c633e250e
AGS: Engine: cut out DebugConsole implementation, as unusable
...
This "console" implementation has multiple issues, making it unusable in practice:
- saves and displays only few lines, cannot scroll back;
while multiple game messages may be printed per a single game frame;
- messages cannot be filtered at runtime;
- uses a game font of a fixed number, which in unreliable (as the font may not be suitable);
There's not much value in its code; if a new console will be wanted in the future, then it
would be best to reimplement one from scratch, but with a good planning first.
From upstream c303590efca4632fef0fb2ab3143faba6e605ba8
2024-10-30 18:07:42 +02:00
Le Philousophe
49b4c1b3c4
AGS: Revert to use std namespace
...
This allows to minimize changes from upstream
2024-07-08 21:37:28 +02:00
Paul Gilbert
c2a476411c
AGS: Move std namespace into common/std/
2024-07-07 15:28:31 -07:00
D G Turner
be309e97eb
AGS: Fix GCC Compiler Warnings
2023-03-12 20:58:29 +00:00
Walter Agazzi
5a2405d291
AGS: Engine: debug use AppendFmt at send msg and clang-tidy fixes
...
From upstream 96f0b3d5e216fbba6df3cb47df3d28687b4dd5e4
2023-03-12 20:58:28 +00:00
Walter Agazzi
97d08215b5
AGS: Engine: Use a single function to send messages to editor debugger
...
From upstream 003243d6c925d176d6e206bed7c1c930952ba2da
2023-03-12 20:58:28 +00:00
Walter Agazzi
c366ce5eef
AGS: Removed update_polled_stuff_if_runtime() from data loading functions
...
Leave it with a new name as `update_polled_stuff()` only in functions
related to the game update.
From upstream 95dc139f51e704da19792e5480e69bbfe7ec27aa
2023-03-12 20:58:28 +00:00
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
Paul Gilbert
fff50e3735
AGS: Moved IsFile() and similar functions from Path to File unit
...
From upstream ab78e1c454d1d0e60eac5a27672f27aa2487e24f
2022-03-20 22:11:55 -07:00
D G Turner
6d7663b1b1
AGS: Fix Redundant Declaration Warnings
...
These are emitted by GCC when -Wredundant-decls is passed.
2022-03-09 15:28:19 +00:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Orgad Shaneh
ee57380de7
ENGINES: JANITORIAL: Remove 'virtual' when override is specified
2021-11-14 14:32:04 +02:00
Paul Gilbert
14b53d9a9e
AGS: Moved plugins globals into Globals
2021-07-18 17:07:02 -07:00
Paul Gilbert
edb1ac0f6c
AGS: fixed formatting type for several size_t and soff_t values
...
From upstream 548573740a5c8acc48600f9b069b7d1dc94d0dc3
2021-06-13 21:09:01 -07:00
Paul Gilbert
46ddd20145
AGS: Fixed few type cast warnings
...
From upstream 3085660c96318f2fb4943aff6fc41dfcd6a00c3d
2021-06-13 21:09:01 -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
c111ef5f45
AGS: Changing ::remove to File::DeleteFile
2021-06-13 21:08:56 -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
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
34c86ce1a1
AGS: Removal of commented out includes
2021-03-06 19:43:13 -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