Commit Graph
23 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
antoniou79 d474ee3003 AGS: Change a few char variables to int8
In order to specify that they should be treated as signed

Some ports may treat an (unspecified) "char" as unsigned by default. Android does this for its ARM architectures and while we did fix this by enforcing -fsigned-char to its compiler, the issue may come up for other ports. Also it should be better to clarify in the engine when a variable is not actually storing string characters.

I've spotted and changed the most "safe" cases I could find for this. As far as I can tell, out of these, only the Outline field and fontoutline array could potentially be assigned valid negative values which would cause bugs for ports treating chars as unsigned.
2021-09-09 19:27:49 -07:00
Paul Gilbert 93396cdcc1 AGS: Fix formatting of delete[] calls 2021-08-17 21:31:56 -07:00
Paul Gilbert ae1814553f AGS: Implement PluginMethod class as proxy for calling script methods 2021-07-18 21:47:45 -07:00
Paul Gilbert 8caed23e8b AGS: Refactoring the plugins for new instance scheme 2021-07-18 17:07:02 -07:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Thierry Crozat 74f20c23e1 AGS: Fix memory issue in ags_pal_render DoFire 2021-04-07 00:01:23 +01:00
Thierry Crozat fdadacfac1 AGS: Fix passing arguments to ags_pal_render plugins 2021-04-07 00:01:23 +01:00
Thierry Crozat 8491d62fa6 AGS: Fix access to bitmaps in plugins
In ScummVM bitmap data are stored linearly but plugins
were accessing those as array of arrays leading to
out of bound memory access.
2021-03-06 21:21:22 +00:00
Paul Gilbert 800adbacf5 AGS: Fix crash calling AGSCreditz plugin method
The latest change to try and properly handle NumberPtr results
from plugin methods broke the passed parameters on methods with
a void return. To solve this once and for all, I changed all
plugin methods to be a void return, and added a _results field
as part of the passed params parameter
2021-03-03 21:18:32 -08:00
Paul Gilbert a291894e3b AGS: Change plugins savegame code to use Serializer 2021-02-16 21:13:45 -08:00
Paul Gilbert 155e74eae5 AGS: Change DLL base class to PluginBase 2021-02-16 20:22:43 -08:00
Paul Gilbert 17ee6fbc3e AGS: Change sizeof(int) to sizeof(int32) were appropriate
There were some places where even after reversion to the old type
usage, some usages of sizeof(int) should really be sizeof(int32)
2021-02-16 20:11:40 -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 b38670950f AGS: Clang fix and cleanup for AGSPalRender plugin 2021-02-16 19:33:43 -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
Ori Avtalion bfe16d0ed4 AGS: Silence clang warnings 2021-02-11 20:31:17 +02:00
Ori Avtalion 31e33a1e08 AGS: Convert to Unix newlines 2021-02-11 20:28:11 +02:00
Paul Gilbert 81cbe37db3 AGS: Fix plugins onEvent methods, skeleton for ags_tcp_ip 2021-02-07 20:26:52 -08:00
Paul Gilbert ef8a01baee AGS: Fix compiler warnings 2021-02-06 16:37:31 -08:00
Paul Gilbert 8bc249b99f AGS: gcc compilation fixes 2021-02-06 16:37:31 -08:00
Paul Gilbert f46df1bb90 AGS: Added AGSPalRender plugin 2021-02-06 16:37:31 -08:00
dreammaster 58acb3579e AGS: Initial import of unmodified other plugins source
the AGS codebase comes with the option to build with several
built-in plugins that code is provided for. These will still
need to be cleaned up for the ScummVM DLL implementation
2021-02-06 16:37:31 -08:00