Commit graph

208 commits

Author SHA1 Message Date
Filippos Karapetis
3147b65b07 GLK: SCOTT: Check for RTL events - bug #14256 2024-11-12 02:47:28 +02:00
Hubert Maier
eb0752d811 JANITORIAL: GLK: Fix typos 2024-09-11 11:11:22 +03:00
Hubert Maier
b6c7be876a
JANITORIAL: GLK: Fix typos in comments 2024-08-05 18:57:40 +03:00
sluicebox
c15beb478a GLK: SCOTT: Fix memory leaks. PVS-Studio V773 2023-12-05 09:24:32 -08:00
Marco Borrini
6d67a35018 GLK: Avoids some gameIDs clashing between various GLK subengines 2023-12-03 20:57:15 +01:00
Aditya
a5b3353022 ALL: Decrease header dependency for gui_options.h
Now the number of times the header file gui_options.h
is added is much smaller.
2023-10-27 01:16:32 +02:00
Eugene Sandulenko
7d447fd079
GLK: SCOTT: Comment out unused variables 2023-04-29 20:28:21 +02:00
Harishankar Kumar
63af61b1cc
GLK: SCOTT: Fix assert failed after calling Scott::fatal() 2023-03-02 01:28:31 +01:00
angstsmurf
ba1836aacf GLK: SCOTT: Fix inverted condition 2023-02-23 19:35:26 -08:00
angstsmurf
3012d2ad6a GLK: SCOTT: Update UNP64
The UNP64 code was not endian safe, unaligned and contained a couple of
out-of-bounds reads and errors in the translation to C++.

This fixes that, mainly by adding a number of helper functions to
exo_util.cpp and replacing the unsafe code with calls to them.
2023-02-19 15:11:20 -08:00
angstsmurf
b87fd75ed0 GLK: SCOTT: UNP64: Update license
Parts of the code of Unp64 comes from Exomizer, a tool which uses
as modified Zlib license which is not compatible with GPL. The author of
Exomizer, Magnus Lind, has given permission to distribute this code under
unmodified Zlib license, so I have updated that here.

(The author of Unp64, iAN CooG, has agreed to let us distribute his code
 under a GPL license. Or any license we want, to be precise.)
2023-01-13 23:58:04 +01:00
elasota
e280186a8c ALL: VS warning cleanup 2022-12-25 16:31:57 +01:00
angstsmurf
e27d1ae160 GLK: SCOTT: Fix out-of-bounds write
If nv or nn (number of verbs or number of nouns) is equal to or larger than the number
of words + 2, this loop will try to write out of bounds and assert. This happens for
example in the C64 version of The Golden Baton.

To fix this, it is really enough to change the >= operator to >, but I took the opportunity
to simplify the code a bit as well.
2022-12-16 12:43:56 +02:00
D G Turner
8bc926886c GLK: SCOTT: Fix Misleading Indentation GCC Compiler Warning 2022-12-14 09:31:41 +00:00
angstsmurf
387dd08f5d GLK: SCOTT: Fix leak in disk_image.cpp
The method diCreateFromData() is set up as if it is going to copy the
data supplied by the caller to the _image member, allocating memory for
it, but then just assigns the data to it instead, leaking the allocated
memory.

This also means that if the data supplied is not a valid disk image, it
will delete the original data in the default case.

We fix this by just removing the allocation and the deletion. An
alternative would have been to actually copy the data instead.
2022-12-13 20:03:58 -08:00
Eugene Sandulenko
733064565e
GLK: SCOTT: Fix mismatched new[]/delete. CID 1488026, 1488033 2022-11-20 19:07:28 +01:00
Le Philousophe
6d3a10c631 GLK: Don't use unsafe sprintf and vsprintf 2022-10-23 22:46:19 +02:00
Le Philousophe
93cdbbbf39 GLK: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
Walter Agazzi
3b59508f6d GLK: SCOTT: Add detection for TI-99 Homebrew games collection 2022-10-21 20:02:56 +02:00
Walter Agazzi
be3abd3c26 GLK: SCOTT: Add detection for Ghost King 2022-10-21 20:02:56 +02:00
Walter Agazzi
2d33e5d318 GLK: SCOTT: Ignore common extensions to prevent mass add flooding
Avoid picking any .d64 (Commodore disc) or .t64 (Commodore tape)
as a possible Scott game, to prevent conflicts with the detection of
Maniac Mansion / Zak C64 and possibile flooding in mass-add.
2022-10-20 18:56:42 -07:00
Walter Agazzi
611dea205c GLK: SCOTT: Add missing fallback detection entry 2022-10-20 18:56:42 -07:00
Eugene Sandulenko
74cd80a92c
GLK: SCOTT: Fix copy/paste reeor. CID 1488039 2022-10-08 01:38:33 +02:00
D G Turner
c4174f6e9b GLK: SCOTT: Fix Type Limits Make Comparison Always False GCC Warning
While this could be fixed in other ways, this works for both signed
and unsigned 8 bit types avoiding the type issues for char.
2022-07-05 22:42:01 +01:00
Avijeet
a662df81c7 COMMON: Rename TI99 platform 2022-07-02 15:17:53 +02:00
Avijeet
264c3541c7 GLK: SCOTT: Fix incorrect type cast 2022-07-02 15:17:53 +02:00
Avijeet
74ccdfe57b GLK: SCOTT: Fix signed/unsigned mismatch 2022-07-02 15:17:53 +02:00
Avijeet
28fcbeb230 GLK: SCOTT: Add TI-99/4A games to detection 2022-07-02 15:17:53 +02:00
Avijeet
4367c39472 GLK: SCOTT: Fix bugs in TI99 game loading 2022-07-02 15:17:53 +02:00
Avijeet
5aadf6e7e0 GLK: SCOTT: Implement performTI99Line 2022-07-02 15:17:53 +02:00
Avijeet
9e4d5408de GLK: SCOTT: Implement runExplicitTI99Actions 2022-07-02 15:17:53 +02:00
Avijeet
49e9f404d2 GLK: SCOTT: Implement runImplicitTI99Actions 2022-07-02 15:17:53 +02:00
Avijeet
c6e730a291 GLK: SCOTT: Add ti99_4a_terp.h/cpp 2022-07-02 15:17:53 +02:00
Avijeet
f6a6b83367 GLK: SCOTT: Implement loadTitleScreen 2022-07-02 15:17:53 +02:00
Avijeet
b90a145c29 GLK: SCOTT: Implement readTI99ExplicitActions 2022-07-02 15:17:53 +02:00
Avijeet
3d9f511881 GLK: SCOTT: Implement readTI99ImplicitActions 2022-07-02 15:17:53 +02:00
Avijeet
309dab7c8f GLK: SCOTT: Implement getTI994AWord 2022-07-02 15:17:53 +02:00
Avijeet
db6b013402 GLK: SCOTT: Implement getTI994AString and getWord 2022-07-02 15:17:53 +02:00
Avijeet
46fb85112d GLK: SCOTT: Implement fixWord 2022-07-02 15:17:53 +02:00
Avijeet
93e7d4de16 GLK: SCOTT: Implement fixAddress 2022-07-02 15:17:53 +02:00
Avijeet
64bc7401b8 GLK: SCOTT: Implement tryLoadingTI994A 2022-07-02 15:17:53 +02:00
Avijeet
08ae18b5b4 GLK: SCOTT: Implement getMaxTI99Items 2022-07-02 15:17:53 +02:00
Avijeet
f0b030b971 GLK: SCOTT: Implement getMaxTI99Messages 2022-07-02 15:17:53 +02:00
Avijeet
0557e9818c GLK: SCOTT: Implement detectTI994A 2022-07-02 15:17:53 +02:00
Avijeet
23f4211038 GLK: SCOTT: Add TI99 loading 2022-07-02 15:17:53 +02:00
Le Philousophe
55312a2fc9 GLK: Finx int vs int32 discrepancies 2022-06-26 15:55:32 +02:00
Avijeet
e28966a2b6 GLK: SCOTT: Fix incorrect detection entry 2022-06-24 15:27:17 +02:00
Avijeet
85b381859f GLK: SCOTT: Add platform data to detection entries 2022-06-24 15:27:17 +02:00
Avijeet
2256d19a0c GLK: SCOTT: Include platform data in game detection entry 2022-06-24 15:27:17 +02:00
D G Turner
e95b2054b4 GLK: SCOTT: Fix Remaining GCC Compiler Warnings 2022-06-23 23:51:50 +01:00