Paul Gilbert
8e55de7b77
AGS: Changed sccmd_info array from being global objects
2022-05-31 18:33:21 -07:00
Paul Gilbert
13f40609c7
AGS: Reset currentline when exiting script function, for cc_errors
...
From upstream 538e9072b03b0441853ac0022d17f8990065f8de
2022-05-05 22:41:10 -07:00
Paul Gilbert
b1649597d7
AGS: Replaced Math/std Min/Max with ScummVM macros
...
Inspired by 6dee5ee6f271c600e30879d892295ea6069e8cc9
2022-05-05 22:41:10 -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
68e5184afa
AGS: Replaced some (v)sprintfs with sNprintf counterparts
...
From upstream a34bd392249f87a152dc470d90c67a7d193a28d8
2022-04-27 20:51:30 -07:00
Paul Gilbert
a633e9d72f
AGS: Fixing various type-cast warnings
...
From upstream 6c42c7331e96386721f28c92ec3cb4cd039e10cd
2022-04-25 20:06:19 -07:00
Paul Gilbert
608389c4c5
AGS: made SystemImports index an unsigned value
...
From upstream 30b8f4016c815f01b49398ddb697b454f1565218
2022-04-24 16:00:05 -07:00
Le Philousophe
edcce8744f
AGS: Fix build on AmigaOS and NDS
2022-04-19 18:37:09 +02:00
Paul Gilbert
99cc27e840
AGS: Fixed few comments in ccInstance::Run()
...
From upstream 109346cf4cc747c9a3bef72c234a18a5f63d30fe
2022-04-18 19:10:40 -07:00
Paul Gilbert
dec92f05ea
AGS: Support passing partial argument list to a script callback
...
From upstream e38df03c5d1658a2c44a26ba4ee6f22663c1e701
2022-04-18 19:10:40 -07:00
Paul Gilbert
2fa13bb149
AGS: Compilation fix
2022-04-13 22:12:16 -07:00
Paul Gilbert
fb52856d7e
AGS: Reorder function linking steps
...
From upstream 0f977a56f0b1cf293f711e8380bb9ddaa54d2573
2022-03-29 21:43:59 -07:00
Paul Gilbert
52b3d7437c
AGS: Updated comment in ccInstance::AddGlobalVar() about glvar fixup
...
From upstream 23c2e0aee21de7960e5660aca6c96bf039ead1db
2022-03-23 20:13:06 -07:00
D G Turner
f50e2c4aa5
AGS: Fix Signed vs. Unsigned Comparison GCC Compiler Warning
2022-03-20 12:58:14 +00:00
Paul Gilbert
19e7035ded
AGS: Replaced few function params from PScript to ccScript*
...
From upstream 432cbd2ee9fd76f7799336a5daee690ad9609a65
2022-03-19 21:25:10 -07:00
Paul Gilbert
28d91ca846
AGS: Try report script section and line on fixup error
...
From upstream 27e578e8140d0bc7d455fbff0e365c2608554c61
2022-03-19 21:25:09 -07:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Eugene Sandulenko
04d9b302f6
AGS: Fix warnings
2021-12-01 00:03:04 +01:00
Orgad Shaneh
3919f53326
ENGINES: Replace new[]/memset with new[]()
2021-11-10 19:53:15 +01:00
D G Turner
a0fb27f955
AGS: Fix Compiler Warnings
2021-09-12 17:53:30 +01:00
Paul Gilbert
aff8bbb31c
AGS: Hook up script dump to ScummVM debug channels
2021-09-08 21:10:09 -07:00
Paul Gilbert
93396cdcc1
AGS: Fix formatting of delete[] calls
2021-08-17 21:31:56 -07:00
D G Turner
100541f247
AGS: Fix Set-But-Unused Variable GCC Warning
2021-08-13 12:36:20 +01:00
Paul Gilbert
72cbc27fa3
AGS: Added TFG detection entries
2021-08-12 19:19:39 -07:00
Paul Gilbert
a359c9e9ff
AGS: Fix startup of Maniac Mansion Mania 13
2021-08-07 20:54:19 -07:00
Paul Gilbert
19cc95468a
AGS: Fix 64-bit pointer plugin method result checks
...
In most cases, it looks like the GlobalReturnValue global is
set, resulting the return value being discarded
2021-08-04 20:55:37 -07:00
Paul Gilbert
7dfeb809f2
AGS: Refactored call_function to also use PluginMethod
2021-07-19 19:17:12 -07:00
Paul Gilbert
e543a32ec0
AGS: In progress converting plugin classes to be instance based
...
Previously the plugin system was obviously built around function
pointers, since a loaded plugin DLL would expose them statically.
This meant that the plugin classes I implemented also had to use
static methods, and all the variables had to be static as well.
This has been getting more and more annoying. So this commit is
an in-progress refactoring of AGS to allow for plugins to be
properly instance-based, and pointers to script methods will be
both a pointer to the plugin as well as the method name.
2021-07-18 17:07:01 -07:00
Paul Gilbert
d9bbf9775c
AGS: Rewrote ci_find_file() into File::FindFileCI()
...
From upstream 4e2df949ff36bbb6d08e402586dc8c2bb02ecad9
2021-07-10 18:56:59 -07:00
Paul Gilbert
ddb5daca4c
AGS: improve debug level and cc_error output for missing imports
...
From upstream ca66d3cb69930c9f755da5fc26e173098169ae7d
2021-07-10 18:56:57 -07:00
Paul Gilbert
8f3b1e4b0e
AGS: print all missing script imports for current script module
...
From upstream 9a1c401ba97267947db5357b34db55e62b213f99
2021-07-10 18:56:57 -07:00
Paul Gilbert
ba10eb247e
AGS: print original filename for import errors if possible
...
From upstream 94fc737b34e84a5753479910f8da97a28744f918
2021-07-10 14:33:38 -07:00
D G Turner
efc9e04ce0
AGS: Fix Various GCC Compiler Warnings
2021-06-15 11:07:23 +01: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
87dba2e276
AGS: Re-added checks for SHOULD_QUIT and abort_engine
2021-06-13 21:08:52 -07:00
Paul Gilbert
701396361c
AGS: Import of fresh codebase
2021-06-13 21:08:44 -07:00
Paul Gilbert
bc8c92c2f9
AGS: Replace QFG2 workarounds with generic upstream fix
...
This applies commit b07ddea6d2a16cd4e77e687675853dbc914b15ca
2021-04-17 16:37:13 -07:00
Paul Gilbert
407d38e7e9
AGS: Add a lot of abort_engine checks to break out of scripts
...
Previously, quitting could generate spurious error messages
between the point abort_engine was set, and the outer game
loop where game execution was aborted. It just wasn't visible,
because abort_engine was set. Now that we're immediately
generating a ScummVM error for any error generated, I needed
to add extra abort_engine break checks to avoid any errors
2021-04-16 20:44:41 -07:00
Thierry Crozat
44c0f0d115
AGS: Improve print of arguments when dumping script instruction
2021-04-16 01:14:45 +01:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs
2021-04-15 21:20:36 +02:00
Thierry Crozat
d77aa09eb0
AGS: Fix compilation on 64 bit Windows
2021-04-15 12:11:20 +01:00
Thierry Crozat
b1683699bd
AGS: Fix script dump
...
The code for dumping script was not working. One issue is that it
was opening and closing the file for each line, which was very
slow. Another issue is that we do not support opening in rw mode,
so it was open in write mode only and only the last line was
available in the file. The code switches to writing the file using
Common::DumpFile and keeps the file open until we close the engine.
2021-04-14 23:54:48 +01:00
Paul Gilbert
879a06fabf
AGS: Extend workaround to fix QFG2 F4 cheat key
2021-04-08 19:08:02 -07:00
Paul Gilbert
5650217194
AGS: Workaround for QFG2 F10 cheat key
2021-04-07 21:21:00 -07:00
Paul Gilbert
a18be9c938
AGS: Move miscellaneous engine/ac/ globals to Globals
2021-03-12 21:30:58 -08:00
Paul Gilbert
24d800ae1b
AGS: Move agsstaticobject.cpp globals to Globals
2021-03-12 21:14:38 -08:00
Paul Gilbert
2f094655f1
AGS: Move script_runtime.cpp globals to Globals
2021-03-12 20:59:14 -08:00