Commit Graph

1784 Commits

Author SHA1 Message Date
Bastien Bouclet
6e67356777 FULLPIPE: Add override keywords 2020-02-09 12:43:15 +01:00
Eugene Sandulenko
0f2bcaf6b6 FULLPIPE: Added override keywords 2020-02-05 15:17:15 +01:00
Paul Gilbert
5b80320525 ENGINES: Adding override keyword to hasFeature methods 2020-02-04 20:04:11 -08:00
D G Turner
3fb386a2f9 FULLPIPE: Remove Unused Private Members from Sound Class
These cause warnings from Clang when -Wunused-private-field is set.

Was initially unsure if this class was saved as it was a subclass of
MemoryObject, but changing this appears to be safe as the save method
is not implemented in any case.
2019-12-19 14:19:14 +00:00
D G Turner
9190f6e1c8 FULLPIPE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.

Also, do minor fixes for readability to switch statements.
2019-11-14 02:44:19 +00:00
Eugene Sandulenko
7943f5f127 FULLPIPE: Fix compilation 2019-11-13 22:15:17 +01:00
Eugene Sandulenko
038183301a FULLPIPE: Fix const'ness 2019-11-10 20:35:45 +01:00
Eugene Sandulenko
2f34b872f6 FULLPIPE: More debug putput 2019-11-10 20:31:01 +01:00
Eugene Sandulenko
416ab05eaa FULLPIPE: Use more portable double loading 2019-11-10 19:50:53 +01:00
Eugene Sandulenko
6cad53e546 FULLPIPE: Added more debug output 2019-11-10 19:50:53 +01:00
Eugene Sandulenko
baa7e0f5f3 FULLPIPE: Do not void global engine pointer too early 2019-11-10 19:50:48 +01:00
Bastien Bouclet
9c8bd056d6 ENGINES: Stop using 'single id' 2019-11-03 11:43:00 +01:00
Bastien Bouclet
4b42112721 ENGINES: Add an engine ID to all the engines 2019-11-03 11:43:00 +01:00
Henrik "Henke37" Andersson
cd9944a359 FULLPIPE: Game uses ogg, not midi for music. Mark it as not using midi. 2019-09-29 19:34:16 +03:00
Torbjörn Andersson
4eef7a42e3 FULLPIPE: Silence GCC memset() warnings
Recent GCC versions complain if you memset() a class or struct that
contain non-POD data types. Get around that by either initializing
the object when created, or by adding a reset() method.
2019-07-14 14:58:19 +03:00
Filippos Karapetis
92aa713958 FULLPIPE: Silence a false positive warning in MSVC
MSVC complained about a potentially uninitialized variable here
2018-12-23 20:41:33 +02:00
Bastien Bouclet
9a4c0ae281 ENGINES: Normalize the getName() result of metaengines
Also-By: Matthew Hoops <clone2727@gmail.com>
2018-12-10 06:47:27 +01:00
D G Turner
0ac7887856 FULLPIPE: Fix For Memory Leak When Exiting Through Game Menu.
This fixes bug #10398 ("FULLPIPE: memory leak when exiting via in-game
menu (not gmm)").
2018-09-26 04:44:04 +01:00
David Fioramonti
ccd46b7db9 FULLPIPE: Use degree conversion common math funcs
Swapped out the #define ANGLE(X) function that did degrees
to radians.

I have made everything doubles in the angle calculation.
2018-07-03 23:08:48 +01:00
Gabriel Corona
39c2477fbe FULLPIPE: fix URI
The previous URI spawns many useless subshells on the POSIX backend
through (harmless) shell command injection.
2018-05-24 01:08:28 +02:00
Eugene Sandulenko
ae2637e36e FULLPIPE: Properly reserve arrays when deserializing. Pointed by whiterandrek 2018-05-21 22:32:24 +02:00
David Fioramonti
1ff0aba6c4 FULLPIPE: Reduce duplicate header includes
Remove duplicate headers in two files and ordered
the headers similar to other fullpipe files.
2018-05-05 06:58:47 +02:00
Bastien Bouclet
91c8f2df7d FULLPIPE: Remove useless AD include 2018-05-01 12:48:05 +02:00
Adrian Frühwirth
00e59a3122 ALL: Load savegame thumbnail only when necessary
This commit introduces the following changes:

1. Graphics::loadThumbnail()

   Now returns a boolean and takes a new argument skipThumbnail which
   defaults to false. In case of true, loadThumbnail() reads past the
   thumbnail data in the input stream instead of actually loading the
   thumbnail. This simplifies savegame handling where, up until now,
   many engines always read the whole savegame metadata (including
   the thumbnail) and then threw away the thumbnail when not needed
   (which is in almost all cases, the most common exception being
   MetaEngine::querySaveMetaInfos() which is responsible for loading
   savegame metadata for displaying it in the GUI launcher.

2. readSavegameHeader()

   Engines which already implement such a method (name varies) now take
   a new argument skipThumbnail (default: true) which is passed
   through to loadThumbnail(). This means that the default case for
   readSavegameHeader() is now _not_ loading the thumbnail from a
   savegame and just reading past it. In those cases, e.g.
   querySaveMetaInfos(), where we actually are interested in loading
   the thumbnail readSavegameHeader() needs to explicitely be called
   with skipThumbnail == false.

   Engines whose readSavegameHeader() (name varies) already takes an
   argument loadThumbnail have been adapted to have a similar
   prototype and semantics.
   I.e. readSaveHeader(in, loadThumbnail, header) now is
   readSaveHeader(in, header, skipThumbnail).

3. Error handling

   Engines which previously did not check the return value of
   readSavegameHeader() (name varies) now do so ensuring that possibly
   broken savegames (be it a broken thumbnail or something else) don't
   make it into the GUI launcher list in the first place.
2018-04-07 09:26:20 +02:00
Eugene Sandulenko
5c77858aee FULLPIPE: Remove unneeded variable 2018-03-28 12:07:10 +02:00
dm33tri
c8cdaef918 FULLPIPE: fix #10321 "Hardlock when stepping onto stool"
Scene 22 now doesn't freeze when pulling lever with stool under it
2018-03-26 21:00:16 +02:00
Adrian Frühwirth
c750a8e6be FULLPIPE: Fix playtime not being read from savegames
Fixes Trac#10394.
2018-03-24 23:38:36 +01:00
Adrian Frühwirth
abe9f0fa15 FULLPIPE: Use zero playtime when filling dummy header
This is a tad more meaningful than a random value, especially should we
for some reason use dummy header information to actually set playtime in
the future.
2018-03-24 23:38:34 +01:00
Eugene Sandulenko
6d59ecdd41 FULLPIPE: Load gameobj.h 2017-12-08 23:57:48 +01:00
Eugene Sandulenko
7724e51936 FULLPIPE: Added debug output for GameObject 2017-12-08 23:57:48 +01:00
Eugene Sandulenko
1408ffc427 FULLPIPE: Better debug output for movement 2017-12-08 23:57:48 +01:00
Eugene Sandulenko
c728c29857 FULLPIPE: More debug output to loading 2017-12-08 23:57:48 +01:00
Eugene Sandulenko
20fb25d58a FULLPIPE: Renames in ExCommand 2017-12-03 23:04:58 +01:00
Eugene Sandulenko
26747d0400 FULLPIPE: Added more debug output to the class loading 2017-12-03 23:04:58 +01:00
Eugene Sandulenko
1f2290cd30 FULLPIPE: Fix bug #10317: Save game metadata is missing 2017-12-02 00:53:57 +01:00
Eugene Sandulenko
cd516b93ef FULLPIPE: Fix bug #10325: New game does not put back already picked up items 2017-12-01 23:16:09 +01:00
Eugene Sandulenko
cee6a336f2 FULLPIPE: Fix bug #9673: Unable to move after loading a save from the title screen 2017-12-01 22:43:16 +01:00
Eugene Sandulenko
8f8b2ed003 FULLPIPE: Fix bug #9672: "Several inventory items highlighted at the same time" 2017-12-01 19:58:11 +01:00
Eugene Sandulenko
19d3e3d103 FULLPIPE: Properly cleanup menu after quitting 2017-11-27 22:24:33 +01:00
Eugene Sandulenko
a5ab1cd293 FULLPIPE: Attempt to crash when calling paletteless scenes 2017-11-27 21:20:24 +01:00
Bastien Bouclet
1e593a4e69 FULLPIPE: Fix out of bounds string access
abe1c65d62 changed _trackName from a char * to a Common::String,
but still tried to access the null terminator byte.
2017-11-26 08:51:36 +01:00
Bastien Bouclet
0bd2e53cd4 FULLPIPE: Fix handleInteraction for non static ani objects
cce851d1af introduced a check to allow only static ani objects. However
after this change, only part of the pipes for vertical movement were
interactive.
This change aims to restore functionality for the other object types
while still preventing the invalid casts.
2017-11-26 08:51:36 +01:00
Bastien Bouclet
694990e712 FULLPIPE: Fix big picture array indexing
Fixes #10322.
2017-11-21 19:43:28 +01:00
Bastien Bouclet
183571f7c2 FULLPIPE: Fix loading inventory items from saves
In C++ the function parameter evaluation order is undefined. The count
property was being read first from the stream, instead of the itemId.

Fixes #10324.
2017-11-20 20:22:32 +01:00
Colin Snover
2cc79fe9c8 FULLPIPE: Fix memory leaks restoring save games 2017-11-18 22:35:12 +01:00
Colin Snover
e40b4a348a FULLPIPE: Fix memory leaks of arcade keys
Fixes Trac#9657.
2017-11-18 22:35:12 +01:00
Colin Snover
a5060cf378 FULLPIPE: Remove manual memory management and fix in-game save/load 2017-11-18 22:35:12 +01:00
Colin Snover
d0efcb7ad5 FULLPIPE: Fix use-after-free in ModalMainMenu
Pointers to objects which are invalidated when the scene gets
unloaded may continue to be accessed if a mouse hover event is
dispatched to the ModalMainMenu.
2017-11-18 22:35:12 +01:00
Colin Snover
8808817d56 FULLPIPE: Fix memory leaks of MessageQueues when clearing GlobalMessageQueueList 2017-11-18 22:35:12 +01:00
Colin Snover
2be96457b9 FULLPIPE: Make list item ownership comments more consistent 2017-11-18 22:35:12 +01:00