Commit Graph
321 Commits
Author SHA1 Message Date
Cameron Cawley f9489be3a9 ENGINES: Add missing dependencies for several engines 2018-06-30 00:22:34 +02:00
Bastien Bouclet cf1ebf2951 ENGINES: Add unknown game variants to the game detector results 2018-05-10 09:04:23 +02:00
Lothar Serra Mari 451cf2304f ENGINES: Show the unknown Game dialog only when the detector is launched by the Add Game feature 2018-04-29 21:47:10 +01:00
Adrian Frühwirth a20f90cbb7 JANITORIAL: Fix formatting 2018-04-22 00:56:21 +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
Walter van Niftrik 0300979bdd ADL: Add support for another hires1 variant 2018-02-04 16:15:10 +01:00
Walter van Niftrik bdda3447a3 ADL: Add support for an early hires1 version 2018-02-03 23:36:18 +01:00
Walter van Niftrik a0631840f9 ADL: Remove hardcoded disk image filename from hires1 2018-02-03 23:36:18 +01:00
Walter van Niftrik 9e5b54ddc8 ADL: Remove unused array terminator 2018-02-02 23:38:52 +01:00
Walter van Niftrik 236e5da6cc ADL: Fix build error 2018-02-02 22:53:00 +01:00
Walter van Niftrik 44d9f583e0 ADL: Reduce sound volume 2018-02-02 22:18:26 +01:00
Walter van Niftrik aba2961899 ADL: Refactor NIB image error handling 2018-02-02 22:18:25 +01:00
Walter van Niftrik b497ec3065 ADL: Implement new detection method for disk images 2018-02-02 22:18:25 +01:00
Walter van Niftrik 23870196f5 ADL: Refactor disk image handling 2018-02-02 22:18:25 +01:00
Walter van Niftrik 9f479c9b17 ADL: Add sanity check to track/sector numbers read from NIB 2018-02-02 22:18:25 +01:00
Walter van Niftrik b64d8dbf3b ADL: Ignore broken sectors 2018-02-02 22:18:25 +01:00
Walter van Niftrik 1600c4dbb7 ADL: Do not pad out 13-sector .NIB disks to 16-sector format 2018-02-02 22:18:25 +01:00
Walter van Niftrik f0be784fde ADL: Add convert_disk debug command 2018-02-02 22:18:25 +01:00
Walter van Niftrik 4c3cb46bc8 ADL: Remove ADGF_TESTING for hires3+4 2017-11-11 23:41:59 +01:00
Walter van Niftrik be0e1371e8 ADL: Remove ADGF_TESTING for hires5+6 2017-11-11 10:39:16 +01: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
Walter van Niftrik 12e1466168 ADL: Enable ADGF_TESTING for hires3 2017-07-29 12:09:11 +02:00
Walter van Niftrik df2e4e8e2c ADL: Add hires3 support
Game starts up, but isn't playable yet
2017-07-25 14:08:40 +02:00
Walter van Niftrik 06b9cd195f ADL: Move broken-room handling into ADL v2 2017-07-25 14:08:35 +02:00
Walter van Niftrik 90a453a534 ADL: Add support for .d13 disk images 2017-07-25 14:08:22 +02:00
Walter van Niftrik 70092f7f25 ADL: Merge hires2 and hires0 classes 2017-06-26 11:36:45 +02:00
Walter van Niftrik d272351055 ADL: Set ADGF_TESTING for hires4 2017-06-11 15:58:35 +02:00
Walter van Niftrik 900ae1d064 ADL: Fix hires4 dropped item drawing 2017-06-11 14:40:45 +02:00
Walter van Niftrik 4cfb93c227 ADL: Add loading of hires4 game data 2017-06-10 17:07:17 +02:00
Walter van Niftrik 8b9d9bcf84 ADL: Fix incorrect delete (CID 1371758) 2017-03-06 17:01:26 +01:00
Walter van Niftrik 56206fef9f ADL: Implement hires4 intro (1986 re-release) 2017-03-05 21:16:58 +01:00
Walter van Niftrik 3beb48f5ce ADL: Fix error() when opening GMM during intro
This is a regression from 516815d
2017-03-05 21:16:58 +01:00
Walter van Niftrik 494682de90 ADL: Add byte-access functions to Display class 2017-03-05 21:16:58 +01:00
Walter van Niftrik 33c8073bc2 ADL: Make framebuffer loader static 2017-03-05 21:16:58 +01:00
Walter van Niftrik 19b07a7c12 ADL: Move multi-disk handling into v2 2017-03-05 21:16:58 +01:00
Walter van Niftrik c88d30d8d3 ADL: Allow smaller delays 2017-03-05 21:16:58 +01:00
Walter van Niftrik 6bd7ca75f9 ADL: Move shape drawing into base gfx class 2017-03-05 21:16:57 +01:00
Walter van Niftrik e97973a930 ADL: Skip deleted files when reading VTOC 2017-03-05 21:16:57 +01:00
Walter van Niftrik 4d25ed9638 ADL: Enable ADGF_TESTING for hires6 2017-02-23 16:38:06 +01:00
Walter van Niftrik 516815d5f5 ADL: Fix hires6 canSaveGameStateCurrently() 2017-02-23 16:12:48 +01:00
Walter van Niftrik 6a6058a1cc ADL: Reset linesPrinted in game loop 2017-02-23 14:36:32 +01:00
Walter van Niftrik 23bc483ab7 ADL: Fix hires6 room description printing 2017-02-22 23:17:41 +01:00
Walter van Niftrik 69ae262bf2 ADL: Add comments to hires6 direction opcode 2017-02-22 23:17:41 +01:00
Walter van Niftrik cca341804b ADL: Add detection entry for hires4 2017-02-21 11:35:31 +01:00
Walter van Niftrik 9865ee16f7 ADL: Use 0-sample for speaker silence
This reduces popping noises
2017-02-21 11:35:31 +01:00
Walter van Niftrik 8ca719b2bc ADL: Clean up/comment hires6 string printing 2017-02-20 22:53:04 +01:00
Walter van Niftrik 27c956a255 ADL: Fix hires6 flute opcode 2017-02-20 22:53:04 +01:00
Walter van Niftrik 2cc4c7329c ADL: Implement hires6 game loop hacks 2017-02-20 17:22:28 +01:00
Walter van Niftrik b152ef4eaf ADL: Implement hires6 action opcode 0x1e 2017-02-20 11:07:56 +01:00
Walter van Niftrik cc1f975a9c ADL: Implement hires6 action opcode 0x1d 2017-02-19 17:41:34 +01:00