Commit graph

78 commits

Author SHA1 Message Date
Filippos Karapetis
ac9ff4b607 Revert "GOB: fix overload in hotspots.cpp"
This reverts commit e1f2a52fe6.
The original change was a result of a false positive.
Check the discussion in PR #5889 for more information.
2024-07-03 01:18:48 +03:00
Benjamin Funke
e1f2a52fe6 GOB: fix overload in hotspots.cpp 2024-07-02 07:36:23 +03:00
Eugene Sandulenko
5dcdfd2600
GOB: Dual-license the gob engine under LGPL
The major contributors provided their consent:
DrMcCoy, Strangerke, sdelamarre, sev.

The goal is to allow the re-release of this code under
Switch, which is incompatible with pure GPL
2024-01-08 01:44:04 +01:00
Simon Delamarre
0099c3624c GOB: coordinates adjustment for games existing in several resolutions
This mechanism was used to accommodate games existing in several resolutions, while keeping the same script logic across versions.
Opcodes manipulating coordinates and lengths call the adjustCoords() function to double or halve their values depending on the adjustment needed.

Its usage has been confirmed only in a German version of Adibou1 for now, restrict the feature to this game.
2023-04-21 00:13:44 +02:00
Simon Delamarre
8174f48ea9 GOB: workaround for a crash in some Adibou1 "find matching cards" games 2023-04-10 16:52:59 +02:00
Simon Delamarre
6a1e2d5d21
GOB: misc format/style/typo fixes in Adibou2 changes 2022-12-02 11:44:35 +01:00
Simon Delamarre
b2c3510758
GOB: fix a crash in Adibou2 when changing hotspot
The leave function should not be called for hotspot "0"
2022-12-02 11:44:25 +01:00
Simon Delamarre
57d69cf188
GOB: Fix hotspot issue leading to unbreakable waiting state in Adibou2
The hotspot id must be converted to signed integer before being written to game variables.
2022-12-02 11:44:23 +01:00
Le Philousophe
f26ce1e4ff GOB: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
8d91d66a15 GOB: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
D G Turner
799a088b6e GOB: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-12 17:31:01 +00:00
Torbjörn Andersson
462f1c9859 JANITORIAL: Silence more GCC 7 warnings
There were all flagged as intentional fall throughs. I simply changed
the comments to something GCC would recognize.
2017-08-06 12:26:05 +02:00
Johannes Schickel
ea21bc939a GOB: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Sven Hesse
4a59c02a8f GOB: Add a call to Inter::animPalette() in the hotspot checker
The original has the call there too, as confirmed using
the disasm of the gob3 binary.

This fixes bug #3611208.
2013-04-19 11:40:18 +02:00
Sven Hesse
642708de4c GOB: Fix a misplaced continue / fallthrough 2013-04-15 19:07:55 +02:00
Sven Hesse
ac7fbc4bf2 GOB: _renderFlags & 0x40 means the we should draw borders around hotspots
Probably a debug-only flag
2012-06-22 18:10:53 +02:00
Sven Hesse
76723f4f0f GOB: Clean up the Fascination window hotspot code a bit 2012-06-22 18:10:53 +02:00
Sven Hesse
b1e50b4e30 GOB: _renderFlags & 0x80 means "Do we have windows?" 2012-06-22 18:10:52 +02:00
Johannes Schickel
442bcb7d3e ALL: Fix some signed/unsigned comparison warnings. 2012-02-22 20:20:55 +01:00
Sven Hesse
5f4dad1a6d GOB: Fix the display length of "You can't use that" texts in Geisha 2011-08-29 09:47:46 +02:00
Sven Hesse
fcadd5a56d GOB: Fix Geisha's hotspot checks 2011-08-28 21:54:43 +02:00
Sven Hesse
8c69d64678 GOB: Fix a potential input box bug 2011-08-28 21:54:42 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Sven Hesse
f015e175df GOB: Change a warning() into a debugC()
Because it gets on my nerves :P

svn-id: r55350
2011-01-20 12:31:13 +00:00
Sven Hesse
835455798f GOB: Remove the now useless helper.h
svn-id: r53491
2010-10-15 13:55:18 +00:00
Sven Hesse
5c48c3fd2b GOB: Remove strncpy0()
Replacing it (and some strncpy + manual terminating) with
Common::strlcpy()

svn-id: r53490
2010-10-15 13:54:23 +00:00
Torbjörn Andersson
54b2a8c98d JANITORIAL: Cleanup (mostly whitespace)
svn-id: r53161
2010-10-12 04:19:58 +00:00
Sven Hesse
1d17a4157f GOB: Remove extra \n in debug warning()s
svn-id: r52951
2010-09-30 13:04:14 +00:00
Sven Hesse
51fd528fe5 GOB: Change all drawing to use class Surface
svn-id: r52947
2010-09-30 13:02:16 +00:00
Arnaud Boutonné
5cd3ea41db GOB: Clean up of Fascination code
Move Fascination specific function to appropriate classes, plus some style modifications

svn-id: r52267
2010-08-21 18:16:04 +00:00
Arnaud Boutonné
67c1997bf4 Fascination - Fix protection screen (and several other glitches like in the very last screen behavior)
svn-id: r52217
2010-08-19 21:32:54 +00:00
Arnaud Boutonné
b37b0d9b0c Fascination - Suppress some debug messages
svn-id: r52160
2010-08-17 16:27:56 +00:00
Arnaud Boutonné
e075f05395 Gob - Clean up: suppress blanks and tabs present at the end of line
svn-id: r52136
2010-08-17 08:33:50 +00:00
Arnaud Boutonné
3fd7468cbc Fascination - Add handling for window funcLeave on close. This fixes (at least) the picture problem in the lab, and the game is now completable (VGA floppy). Thanks SylvainTV for the debugging help
svn-id: r52103
2010-08-15 18:46:00 +00:00
Sven Hesse
4415953393 GOB: Add constants for different surfaces/sprites
Add
static const int kFrontSurface   = 20;
static const int kBackSurface    = 21;
static const int kAnimSurface    = 22;
static const int kCursorSurface  = 23;
static const int kCaptureSurface = 30;
to class Draw and substitute the raw numbers in other files with
those aliases, for readability.

svn-id: r51852
2010-08-08 00:35:18 +00:00
Johannes Schickel
cbbb78d9f2 Enforce conversion formatting on pointer casts in the DEV code.
svn-id: r49068
2010-05-17 22:46:53 +00:00
Arnaud Boutonné
7e166d1ad6 clean-up : forgot commented code
svn-id: r47869
2010-02-03 22:20:33 +00:00
Arnaud Boutonné
f5764b1152 Fascination - based on the theoritical values of flag, use getWindow instead of the code I added. Suppress shr 8 in getWindow and switched from int8 to uint16, in order to match the executable.
svn-id: r47868
2010-02-03 22:14:06 +00:00
Arnaud Boutonné
b6a824f48f Fascination - Cleanup: suppress some noisy debug output, suppress some obsolete and commented code.
svn-id: r47851
2010-02-03 12:57:47 +00:00
Sven Hesse
5115c94f35 Only show that annoying checkmouse warning for Fascination
svn-id: r47840
2010-02-03 03:26:28 +00:00
Sven Hesse
d4949d03d4 Minor style-related changes
svn-id: r47839
2010-02-03 03:25:50 +00:00
Arnaud Boutonné
86aa70ec4b Fascination - comment calls to getWindow() in checkMouse(). I think getWindow() is wrong, and to be replaced with my new check. The first window reacts !
svn-id: r47829
2010-02-02 23:45:14 +00:00
Arnaud Boutonné
f072709f25 Fascination - Add a window specific function, modify checkmouse() function in order to use it (without breaking the other games). Windows are no longer "transparent"
svn-id: r47828
2010-02-02 23:39:19 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Max Horn
5f178e8650 Fix some MSVC warnings (part of patch #2909981)
svn-id: r46291
2009-12-08 20:44:57 +00:00
Arnaud Boutonné
32d6366f29 gob - Add cursor handling for Fascination windows (close and move at least)
svn-id: r46233
2009-12-01 21:49:45 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Arnaud Boutonné
caaba2ae95 Add a hack that fixes bug #2858887 and #2859606
svn-id: r44785
2009-10-08 12:04:34 +00:00
Arnaud Boutonné
f1c76e2dcb Fascination - Fix a regression in intro (fix of R42171)
svn-id: r44496
2009-09-30 19:14:46 +00:00