Commit Graph
199 Commits
Author SHA1 Message Date
Simon Delamarre 6a1e2d5d21 GOB: misc format/style/typo fixes in Adibou2 changes 2022-12-02 11:44:35 +01:00
Simon Delamarre 73a3b0580f GOB: fix a uint16/uint32 cast error in o2_pushVars
Ints were converted to uint16 first and then uint32 before being pushed, and popped as uint32, so a pushed (int32) "-1" was popped as (uint32) 65535.
This fixes an infinite loop when making a mistake in Adibou2 "write sentence in order" exercise.
2022-12-02 11:44:31 +01:00
Simon Delamarre 5d66b9a200 GOB: add some Adibou1 stubs 2022-12-02 11:44:30 +01:00
Simon Delamarre 97a66c329e GOB: yet more int16->uint16 changes, to accommodate for Playtoons/Adibou2 larger variable space
This makes the Playtoons-like minigame in Adibou2 playable (with glitches).
2022-12-02 11:44:28 +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 a62f7600cb GOB: Fix potential stack overflow 2021-11-16 19:51:12 +02: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
Paul Gilbert 11e33ba3fc JANITORIAL: Removing trailing spaces after int casts 2018-08-17 20:30:20 -07:00
Colin Snover 432fd522d2 ENGINES: Remove default1x scaler flag
This flag is removed for a few reasons:

* Engines universally set this flag to true for widths > 320,
  which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
  since its behaviour was almost completely undocumented and users
  would need to figure out that they'd need an explicit non-default
  scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
  deciding how the backend may choose to render its virtual screen.
  The choice of rendering behaviour belongs to the user, and the
  backend, in that order.

A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Ben Castricum 6f38c1e55d ALL: game state => saved game 2016-11-29 20:15:20 +01:00
Ori Avtalion 3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Johannes Schickel ea21bc939a GOB: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Sven Hesse edacb7ada7 GOB: Move getTotTextItemPart() from Inter_v3 to Inter_v2 2014-01-31 11:54:44 +01:00
Matthew Hoops 0031c41db8 COMMON: Change kPlatformPC to kPlatformDOS
"PC" was very ambiguous and now it matches what we show in the GUI.

This also corrects sword2's platform to Windows.
2013-05-02 18:43:10 -04:00
Sven Hesse f16cc050e9 GOB: Add class Inter_LittleRed
This fixes the crash when selecting an animal in the "Languages"
screen.

Interestingly, the German names of the animals are partially
wrong... And for "Das Schmetterling" (sic!), even the recorded
speech sample is wrong.
2012-06-15 01:14:49 +02:00
Sven Hesse 8c3d2fc741 GOB: Add a way to reopen currently opened IMD/VMD videos
This is a workaround for how Lost in Time behaves in combination
with changes I made to the DataIO code for running Urban Runner
on low-memory devices.

Urban Runner's intro are far to big to have them copied into
memory for these devices, so I made the DataIO code return a
SafeSeekableSubReadStream into the opened archive stream instead.
Unfortunately, Lost in Time might not close a video file when it
closes the data file which it was originally in, especially when
loading a saved game. Since the video player needs to be able to
gaplessly continue a video and there does not, by itself, close
the video if not requested by the scripts, this leads to reading
out of an already closed stream in certain cases.

So, to worka round this issues, the video player tries to reopen
each currently opened video after a data archive was closed, to
make sure that that video is still available. If not, the video
is closed.
2012-06-07 00:29:46 +02:00
Sven Hesse c66afb213b GOB: Fix analyser warnings regarding sprintf() parameter signness 2011-11-03 17:01:54 +01:00
Thierry Crozat 06bbb57ad7 I18N: Make many more GUI MessageDialog strings translatable 2011-06-13 22:19:18 +01:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
dhewg d83a83ef50 JANITORIAL: Remove/comment unused vars
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
Max Horn 42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Sven Hesse b6d2e521c5 GOB: Add oPlaytoons_loadMultObject
svn-id: r55769
2011-02-04 15:55:20 +00:00
Sven Hesse 80bfecb625 GOB: Fix a regression that broke Lost in Time
svn-id: r55760
2011-02-03 20:51:59 +00:00
Sven Hesse 65bc46d3ab GOB: Add Script::evalInt() and Script::evalString()
svn-id: r55634
2011-01-29 22:47:53 +00:00
Sven Hesse 05d5d64d6c GOB: Rename "skipPlay" to "function" in playTot
svn-id: r55628
2011-01-29 22:44:36 +00:00
Sven Hesse 14678f059b GOB: Move OpcodeFunc's return flag into its parameter
To make the meaning of the flag more clear and make the func
opcodes more similar to draw and gob opcodes.

svn-id: r55627
2011-01-29 22:44:06 +00:00
Sven Hesse 03adf7fdf6 GOB: Only draw text when coordinates are within the surface
svn-id: r55575
2011-01-27 21:12:27 +00:00
Sven Hesse e237ff3628 GOB: Some Addy gameflow stubs
svn-id: r55562
2011-01-27 13:26:34 +00:00
Sven Hesse 330acb2168 GOB: Add a sanity check assert()
svn-id: r55535
2011-01-25 14:20:47 +00:00
Sven Hesse 75eb1f7f10 GOB: Also ignore writing to kSaveModeIgnore files
svn-id: r55351
2011-01-20 12:39:54 +00:00
Sven Hesse d4357c5c3f GOB: Give Inca2 its own Inter class
svn-id: r55296
2011-01-18 11:52:24 +00:00
Sven Hesse 61b90c43d8 GOB: Fix a stupid typo in o2_readData()
svn-id: r55290
2011-01-18 08:14:23 +00:00
Sven Hesse db13af5337 GOB: Make the variable stack endianness-independent
Since Urban Runner casts int16s to uint32 before pushing them onto the
stack and after popping assumes it's little endian, we have explicitely
preserve the variable space endianness while pushing/popping.

svn-id: r55277
2011-01-17 13:37:14 +00:00
Sven Hesse 6c6d85908f GOB: Fix o2_pushVars()
Fixes Urban Runner loading.
This being broken has the potential of messing up
/everything/ in unpredictable ways, so saves of games using
this opcode may be borked. Thankfully, I *think* it's just
Urban Runner, which isn't working/supported yet anyway.

svn-id: r55276
2011-01-17 12:09:06 +00:00
Sven Hesse 16a3cc8a84 GOB: Clean up class DataIO
Removing the need for class DataStream and that handle mess.

svn-id: r53984
2010-10-31 20:07:14 +00:00
Sven Hesse 0f3ed50cfc GOB: Make some more map properties protected
svn-id: r53952
2010-10-30 17:28:27 +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
Sven Hesse bab55f3a1d GOB: Adapt the remaining bits to the new VideoPlayer interface
svn-id: r51895
2010-08-08 00:55:27 +00:00
Sven Hesse 7fe406a5dd GOB: Fix video continuing
svn-id: r51878
2010-08-08 00:47:54 +00:00
Sven Hesse 31ecaa5275 GOB: Make o2_playImd use the new VideoPlayer interface
svn-id: r51864
2010-08-08 00:41:22 +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
Sven Hesse 081fa85b14 Playtoons uses a variable space that exceeds 32767 bytes. Changing a few variables to unsigned makes the construction mode not crash anymore (though it now hangs in a loop)
svn-id: r43713
2009-08-24 22:37:09 +00:00
Arnaud Boutonné f9560dc35a Suppress no longer needed Playtoons workaround
svn-id: r43346
2009-08-13 10:00:35 +00:00
Arnaud Boutonné 294f416c4d gob - Add a workaround for files (at least in Playtoons) that are tested on CD only, with the '@' symbol
svn-id: r43227
2009-08-10 20:57:26 +00:00
Sven Hesse 256a27350a Changed the scroll-handling to be more like the original. This fixes bug #2832362 ("GOB3: Scrolling locked after cutscene")
svn-id: r43147
2009-08-08 21:43:07 +00:00
Sven Hesse b9263e172f Show a message if saving or loading a game fails.
svn-id: r43001
2009-08-02 13:54:06 +00:00