Commit Graph
117 Commits
Author SHA1 Message Date
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
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 1f2290cd30 FULLPIPE: Fix bug #10317: Save game metadata is missing 2017-12-02 00:53:57 +01:00
Eugene Sandulenko 19d3e3d103 FULLPIPE: Properly cleanup menu after quitting 2017-11-27 22:24:33 +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 c9327f2985 FULLPIPE: Fix memory leaks of PreloadItems 2017-11-18 22:35:12 +01:00
Colin Snover 4cc64c4139 FULLPIPE: Fix memory leaks in PictureObject, Background 2017-11-18 22:35:12 +01:00
Colin Snover bb26bf7994 FULLPIPE: Fix memory leaks and unnecessary indirect allocations in Motion and Sc2 2017-11-18 22:35:12 +01:00
Colin Snover c2dcb27e35 FULLPIPE: Fix memory leaks in ModalMainMenu 2017-11-18 22:35:12 +01:00
Colin Snover e2367f3ed2 FULLPIPE: Remove unnecessary and unsafe C-style casts 2017-11-18 22:35:12 +01:00
Colin Snover ac593e045e FULLPIPE: Fix memory leaks in ModalVideoPlayer 2017-11-18 22:35:12 +01:00
Colin Snover 88a2eaba93 FULLPIPE: Make dimensions/coordinate getters pure functions 2017-11-18 22:35:12 +01:00
Colin Snover 72a4292727 FULLPIPE: Improve memory safety and fix leaks in sound code 2017-11-18 22:35:12 +01:00
Eugene Sandulenko d4313bf6b5 FULLPIPE: Decrease header dependency 2016-12-26 19:13:28 +01:00
Eugene Sandulenko aeada61c67 FULLPIPE: Open relevant URLs in demo for purchasing full games 2016-12-23 18:28:07 +01:00
Paul Gilbert d239461726 FULLPIPE: Fix colors in intro video 2016-12-12 23:27:17 -05:00
Eugene Sandulenko d6317c9bc8 FULLPIPE: Center map on opening. Fixes bug #9668 2016-12-11 19:49:07 +01:00
Eugene Sandulenko b930b4a74f FULLPIPE: Implement Russian demo differences 2016-12-11 18:36:08 +01:00
Eugene Sandulenko b6bc2e0b95 FULLPIPE: Implement demo-specific help screen 2016-12-11 18:36:08 +01:00
Eugene Sandulenko 817ca2a15f FULLPIPE: Initial support for Russian Demo. The demo starts 2016-12-11 15:58:11 +01:00
Eugene Sandulenko ebad4af484 FULLPIPE: Fix compilation 2016-12-11 00:39:09 +01:00
Eugene Sandulenko 5745c0d09e FULLPIPE: Beginnings of support of Russian demo 2016-12-11 00:08:40 +01:00
Eugene Sandulenko 5f26c445c9 FULLPIPE: Implemented support for German demo 2016-12-10 17:15:49 +01:00
Eugene Sandulenko ffe52deeed FULLPIPE: Implement switching scenes from the map 2016-12-09 16:58:31 +01:00
Eugene Sandulenko 6a3ee9a008 FULLPIPE: Implement ModalMap::findMapSceneId() and plug new map code in 2016-12-08 18:12:57 +01:00
Eugene Sandulenko 55b6e7f090 FULLPIPE: Implement ModalMap::init2() 2016-12-08 18:12:57 +01:00
Eugene Sandulenko 000a68cf79 FULLPIPE: Implement ModalMap::isSceneEnabled() 2016-12-07 18:38:55 +01:00
Eugene Sandulenko a998a1b580 FULLPIPE: Implement ModalMap::checkScenePass() 2016-12-07 12:05:42 +01:00
Eugene Sandulenko 216566f235 FULLPIPE: Renames in ModalMap 2016-12-06 19:46:31 +01:00
Eugene Sandulenko 9d9c856479 FULLPIPE: Map code difference for German version 2016-12-06 19:46:13 +01:00
Eugene Sandulenko d49861fc1a FULLPIPE: Implemented ModalMap::getSceneHPicture() 2016-12-05 22:06:38 +01:00
Eugene Sandulenko 7fe5a4ef91 FULLPIPE: Fix quitting game via menu 2016-12-01 10:50:29 +01:00
Eugene Sandulenko 424d2380b5 FULLPIPE: Enable debug menu permanently after cheat code to match the original 2016-09-30 22:35:55 +02:00
Eugene Sandulenko 9e505ba49c FULLPIPE: Fix debug menu cheat 2016-09-20 22:52:08 +02:00
Eugene Sandulenko ca1eb70fd8 FULLPIPE: Read playtime and save date from save headers 2016-09-20 19:34:48 +02:00
Eugene Sandulenko 26142799ad FULLPIPE: Correct slot number on loading 2016-09-19 18:13:31 +02:00
Eugene Sandulenko 3bf4f3fcbe FULLPIPE: Fix crash at load dialog initialization 2016-09-19 18:13:31 +02:00
Torbjörn Andersson ff1a9ac8d4 FULLPIPE: Remove obsolete TODO comment 2016-09-19 07:25:56 +02:00
Eugene Sandulenko b9b81a22c2 FULLPIPE: Make sound controls work and persistent 2016-09-11 23:18:25 +02:00
Eugene Sandulenko 26f55005b3 FULLPIPE: Rename in ExCommand structure 2016-09-04 23:54:43 +02:00
Eugene Sandulenko b1fc0f6946 JANITORIAL: Fix whitespaces 2016-09-04 14:42:52 +02:00
Eugene Sandulenko f6c29eef46 FULLPIPE: Fix jumping on Map 2016-08-30 23:08:58 +02:00
Eugene Sandulenko 888a4578af FULLPIPE: Fix few bugs in Map code 2016-08-29 23:35:20 +02:00
Torbjörn Andersson dfe04491c1 JANITORIAL: Remove unnecessary semicolons 2015-01-21 01:29:22 +01:00
Eugene Sandulenko a3e89eb4b2 FULLPIPE: Fixed ModalQuery 2014-06-18 09:37:37 +03:00
Eugene Sandulenko fde3e7fc12 FULLPIPE: Implement ModalCredits::update() 2014-06-18 09:37:36 +03:00
Eugene Sandulenko c2387dbf3c FULLPIPE: Implemented ModalIntro::update() 2014-06-18 09:37:36 +03:00