Commit Graph
231 Commits
Author SHA1 Message Date
Bastien Bouclet 3333aea405 COMMON: Include hidden files in directory listings by default
Hidden files are now only ignored in the GUI file browser when the user
has not checked 'show hidden files'.

Myst III has the hidden flag set for one of the directories containing
datafiles on the CD-ROM. When users copy the files to their hard drives
the hidden flag is kept. Detection worked previously because hidden
files were explicitly requested in the AD code. The engine would fail
to open the datafiles because SearchMan.addSubDirectoryMatching
ignored hidden directories.

Fixes #1516.
2019-01-31 09:01:14 +01:00
Bastien Bouclet 662791a961 COMMON: Include hidden files in directory listings by default
Hidden files are now only ignored in the GUI file browser when the user
has not checked 'show hidden files'.

Myst III has the hidden flag set for one of the directories containing
datafiles on the CD-ROM. When users copy the files to their hard drives
the hidden flag is kept. Detection worked previously because hidden
files were explicitly requested in the AD code. The engine would fail
to open the datafiles because SearchMan.addSubDirectoryMatching
ignored hidden directories.
2019-01-30 06:48:32 +01:00
Bastien Bouclet 66654cb376 ALL: Sync with ScummVM - rev. cd37d510f9 2019-01-26 20:47:55 +01:00
D G Turner 5a29aa8812 ENGINES: Fix Crash in Fallback Detector Game Title Naming.
This is a regression from 90b78c5446

This commit restores the previous behaviour and avoids a null
pointer dereference induced crash.

This fixes the root cause of bug Trac #10515.
2018-11-11 08:16:11 +00:00
Bastien Bouclet 53759fe53a ALL: Sync with ScummVM - rev. 2586ca2345 2018-07-31 21:09:37 +02:00
Bastien Bouclet 643ce81cf7 BASE: Remove temporary targets when they fail to launch
Prevents invalid targets created from the command line to show up in the
launcher.

Fixes Trac#2788.
2018-06-03 13:48:31 +02:00
Bastien Bouclet 1dcb8076db ENGINES: Remove usage of C++11 extended initializer lists 2018-05-10 09:26:26 +02:00
Bastien Bouclet 2fe060e5c9 ENGINES: Cleanup DetectedGame initialization in the AD 2018-05-10 09:04:23 +02:00
Bastien Bouclet 90b78c5446 ENGINES: Merge GameDescriptor and DetectedGame 2018-05-10 09:04:23 +02:00
Bastien Bouclet 1de5aca585 ENGINES: Set the GameDescriptor decription in the constructor 2018-05-10 09:04:23 +02:00
Bastien Bouclet 5aff87dc15 ENGINES: Turn GameDescriptor into a simple struct 2018-05-10 09:04:23 +02:00
Bastien Bouclet 643c24db75 ENGINES: Change MetaEngine::listSupportedGames to return plain game descriptors 2018-05-10 09:04:23 +02:00
Bastien Bouclet 8fb149e3c7 ENGINES: Change MetaEngine::findGame to return a plain game descriptor 2018-05-10 09:04:23 +02:00
Bastien Bouclet cf1ebf2951 ENGINES: Add unknown game variants to the game detector results 2018-05-10 09:04:23 +02:00
Bastien Bouclet 9587dd5c21 ENGINES: Fix clang-tidy warnings 2018-05-10 07:50:44 +02:00
Lothar Serra Mari 570119eabf ENGINES: Mark reportCommon string as translateable 2018-05-01 10:34:02 +02:00
Adrian Frühwirth 82757deadd Revert "ENGINES: Improve update of the Unknown Game Dialog when the overlay size changes"
This reverts commit 8cb9eebd8a.
2018-04-30 15:01:44 +02:00
Thierry Crozat 8cb9eebd8a ENGINES: Improve update of the Unknown Game Dialog when the overlay size changes
Previously the dialog was not resized and was just recentered on the screen.
Now it is properly resized as well.
2018-04-29 21:47:10 +01: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
Lothar Serra Mari 4220e14522 ENGINES: Add a dialog for reporting unknown games
Thanks to the great help of @criezy, here's my implementation of an GUI
dialog that appears when an unknown game is detected.

Features:
 - Allows copying the data collected by game detector to the clipboard
 - Allows opening the bug tracker and pre-filling the form fiels

This closes https://bugs.scummvm.org/ticket/10435.
2018-04-29 21:47:10 +01:00
Bastien Bouclet 3ec01653c3 ALL: Merge from ScummVM rev 3a933138ce 2017-12-06 21:41:03 +01:00
Colin Snover a2bdff02d7 ENGINES: Improve output of unknown game variant detection
When a user tries to add a game expecting it to be a particular
game for a particular engine, but a detector from another engine
happens to match some files that exist in the game directory and
reports on those files instead, this can cause a lot of confusion
because the detector doesn't say what engine or game it thought it
matched.

This patch adds the name of the matching engine as well as any
matching game IDs (if applicable) to the detector's logged output.
It also provides more specific guidance about where to send the
detection information (to the bug tracker), and properly wraps the
first part of the report to 80 columns.

Refs Trac#10272.
2017-11-10 09:57:41 -06:00
Colin Snover 66826a8b9b ENGINES: Continue to check file presence after a hash/size mismatch
If an early file in the game's signature list has a hash/size
mismatch, it is still necessary to continue to check the rest of
the candidate files for existence, since the non-existence of
candidate files is supposed to disqualify a game description as
matching a game to an unknown variant.

By quitting the file check early, the detector had been allowing
descriptions to randomly match if there happened to be an early
file in the detection list with the right name but wrong hash/size,
even if some of the other signature files did not exist at all.
2017-11-10 09:57:41 -06:00
Bastien Bouclet 84e62b6c8d ALL: Sync with ScummVM - rev. 87ebc7140c 2017-09-02 15:04:07 +02:00
Colin Snover 159e5a97ce ENGINES: Allow detection entries to match on full paths
This allows an engine to match files that exist multiple times
in the same game directory with the same basename.

For example, different releases of Torin's Passage in SCI engine
come with zero or more GERMAN, FRENCH, ENGLISH, etc. directories,
all containing files with the same basenames but with different
contents per language. Because the allFiles map used only the
basename of a file as a key, it could not match more than one of
these localization directories, which made it impossible to select
from all the possible languages.

Refs Trac#9772.
2017-05-21 15:56:42 -05:00
Eugene Sandulenko cadb29d83d ENGINES: AD: When file has no Mac Resource fork, compute its md5 normally 2017-01-13 22:20:51 +01:00
Ben Castricum d3cd42e1d4 ALL: Fix usage of 'etc.' 2016-11-29 20:14:41 +01:00
rootfather 3ba06b40eb ENGINES: Simplify translation for advancedDetector.cpp
Until now, we had three separate strings for the message
about unsupported games. This commit merges them into
one single string.
2016-11-27 18:18:37 +01:00
Pawel Kolodziejski 9ba9c69b3f ALL: Sync with ScummVM - rev. 823c2f899b 2016-11-12 08:49:29 +01:00
Johannes Schickel e515fc18db ENGINES: Make variable names of PlainGameDescriptor conform to our guidelines.
gameid -> gameId
2016-03-08 19:01:42 +01:00
Johannes Schickel 3aecd8ef2a ENGINES: Make variable names of ADGameDescription conform to our guidelines.
gameid     -> gameId
guioptions -> guiOptions
2016-03-08 19:01:38 +01:00
Johannes Schickel 0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Johannes Schickel 3ec225f127 ENGINES: Fix formatting. 2016-03-08 18:23:04 +01:00
Eugene Sandulenko 86592b82a5 AD: Remove leftover debug messages 2016-03-07 20:48:13 +01:00
Eugene Sandulenko 0463b787e1 AD: Added new flag for autogenerating game target from extra information 2016-03-07 19:00:37 +01:00
Pawel Kolodziejski 1a07a23294 ALL: synced with ScummVM 2014-08-18 05:21:52 +02:00
Filippos Karapetis 672a46b84f DETECTOR: Do not show the zero matched size for illegitimate copies 2014-08-06 15:08:57 +03:00
Pawel Kolodziejski 8759900b6a ALL: synced with ScummVM 2014-04-05 18:18:42 +02:00
Johannes Schickel 53e83147be ENGINES: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Pawel Kolodziejski 790db038c0 ALL: sync with scummvm 2013-10-13 11:30:34 +02:00
Eugene Sandulenko 6384cfdeaa AD: Introduce ADGF_DROPPLATFORM 2013-09-09 00:38:06 +03:00
Pawel Kolodziejski 068ff94d20 ALL: synced with ScummVM 2013-07-07 15:29:33 +02:00
Matthew Hoops 4a7e4e5b22 ALL: Don't use EventRecorder at all when not compiled in 2013-07-06 23:54:45 -04:00
Eugene Sandulenko f59512c47e RECORDER: Implement Events Recorder 2013-05-17 00:18:09 +03: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
Pawel Kolodziejski 8bc0a26091 ALL: synced with scummvm 2012-08-20 08:20:05 +02:00
Sven Hesse 9e7ece4ebe DETECTOR: Make reportUnknown() available for AdvancedMetaEngine classes to use 2012-06-27 05:14:18 +02:00
Sven Hesse 2c760cb15e DETECTOR: Make detectGameFilebased() return a list of MD5s and file sizes
Since we need a FSNode parent for Mac resource forks, we need to change
signature of detectGameFilebased(), too.
2012-06-27 05:14:18 +02:00
Sven Hesse 63e13c5d2c DETECTOR: Move size reading and MD5 creating into a new method getFileProperties() 2012-06-27 05:14:18 +02:00
Sven Hesse 5ca480aa2e DETECTOR: Move ADFileProperties(Map) into advancedDetector.h 2012-06-27 05:14:18 +02:00