Commit Graph
89 Commits
Author SHA1 Message Date
David Fioramonti b47cae789b TINSEL: Fix displayed saved game month off by one
This corrects the displayed month for querySaveMetaInfos being a month
behind.
2018-08-07 18:38:40 -07:00
David Fioramonti f06cf65479 TINSEL: Add playTime to saved game and display it
Also bumps the saved game format version to 3.

I changed the order of how the data is saved so that the playtime could
be read in without skipping as much data.

This is because querySaveMetaInfos only needs the metafields where as
saveload::DoRestore() needs more of the header.

A crash was happening when trying to delete a saved game from the launcher.
It is because the engine is not initalized. I assign a dummy value to
resolve the issue.

Loading saved games from previous versions works.

When an old version saved game is loaded it will start with zero playtime.

Old saved games are shown as not having playtime data.
2018-08-03 14:52:47 +02:00
David Fioramonti aa60f14f52 TINSEL: Remove thumbnail support 2018-07-09 21:31:23 +01:00
David Fioramonti c47dc11c9a TINSEL: Show saved game creation time in load/save gui
Saved games inspected via the ScummVM load or save
gui will now show the year, month, day, hour, and minute
of its creation. This was already being saved in the
saved game header so no version bump is necessary.

This required adding kSavesSupportMetaInfo and
kSavesSupportCreationDate features. I also had to
add kSavesSupportThumbnail or the saved date is not
shown.

It was necessary to write querySaveMetaInfos.
2018-07-06 20:38:14 -07:00
Bastien Bouclet cf1ebf2951 ENGINES: Add unknown game variants to the game detector results 2018-05-10 09:04:23 +02:00
Alexander Tkachev b665fc933d ALL: Make simpleSaveNames() a MetaEngineFeature
Added it into hasFeature() of all engines which returned `true` in
simpleSaveNames() before.

As mentioned in #788, SCI is not always using simple names, so it
doesn't have such feature now.
2016-08-24 16:07:55 +06:00
Alexander Tkachev ab1d160ec8 ALL: Add MetaEngine::simpleSaveNames()
Engines with "simple" savenames would support "Run in background" in
save/load dialog and gradual save slots unlocking. Other engines
save/load feature would be locked until save sync is over.
2016-08-24 16:07:55 +06:00
Eugene Sandulenko a57aa55999 TINSEL: Safer string manipulation 2016-05-11 12:32:18 +02: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 cae26227a0 TINSEL: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Johannes Schickel 140d571f22 TINSEL: Only request actual save slots in listSaves. 2016-01-26 16:35:30 +01:00
Johannes Schickel 9b138f4eb4 TINSEL: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Filippos Karapetis 7456a2ca23 TINSEL: Revert the incorrect flagging of DW2 entries as CD versions
This reverts the changes done to the DW2 entries in commit d4a354c1.

We only distinguish between floppy and CD versions if a game had both a
CD and a floppy version released. DW2 was only released as a CD version,
so the extra flagging of the DW2 entries as CD was redundant, and caused
confusion regarding previous saved games to users that readded the DW2
detection entries after this change
2013-06-06 01:26:02 +03:00
Filippos Karapetis d4a354c17f TINSEL: Remove the GF_CD and GF_FLOPPY flags 2012-07-15 14:55:06 +03:00
Paul Gilbert 212551fe4e TINSEL: Added script workaround for #3543624 - DW1 PSX demo idle animation 2012-07-15 20:58:14 +10:00
Tarek Soliman 921f602ab8 JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
Filippos Karapetis 2c9fdf0df7 TINSEL: Fixed deleting saved games from the launcher (bug #3387551) 2011-08-07 14:21:28 +03:00
Max Horn 879c3c7817 DETECTOR: Pass allFiles to AdvancedMetaEngine::fallbackDetect()
Also reorder the parameters of composeFileHashMap, placing the "return value"
first.
2011-06-14 18:52:11 +02:00
Max Horn 7c992d6598 DETECTOR: Merge ADParams into AdvancedMetaEngine 2011-06-14 18:17:01 +02:00
Max Horn ce1a857669 TINSEL: Switch to alternate AdvancedMetaEngine, avoid ADParams 2011-06-10 22:15:45 +02:00
Max Horn 4827cc914a ENGINES: Change incorrect use of 'target' to 'gameid' 2011-06-10 22:15:40 +02:00
Max Horn 477d6233c3 ENGINES: Change 2nd param of Engine::saveGameState to Common::String 2011-06-02 18:31:59 +02:00
Thierry Crozat 3c59e37035 ENGINES: Unify engine names
This unifies the engine names in MetaEngine::getName() and the
credits. In particular drop "Engine" or "engine" from the names when
it was present and use expanded names in credits when the
MetaEngine uses it (e.g. "Beneath a Steel Sky" instead of "BASS").
2011-05-16 00:11:32 +01:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn 7b47bf4638 TINSEL: Remove dead variables 2011-03-30 00:07:16 +02:00
Max Horn 4d3a07b494 COMMON: Rename and tweak MD5 functions
* names now comply to our naming conventions
* the function computeStreamMD5AsString which computes the MD5
  as a hex string now returns it as a Common::String
* add doxygen comments

svn-id: r54121
2010-11-07 17:16:59 +00:00
Max Horn c5598664ce DETECTOR: Get rid of ADGF_KEEPMATCH
Also fix some typos, and minor tweaks

svn-id: r54118
2010-11-07 17:15:27 +00:00
Max Horn ff01247526 TINSEL: Explain why exactly RTL is disabled
The very same issue probably affects more engines, possibly even some
which have RTL enabled.

svn-id: r54027
2010-11-01 20:49:55 +00:00
Eugene Sandulenko 44a39ffbc6 AdvancedDetector: Add new parameter directoryGlobs.
Without this parameter mass detection gave tons of false alarms.
Use globbing for narrowing down the depth search.

svn-id: r49788
2010-06-15 10:59:23 +00:00
Eugene Sandulenko d5c3cda8c5 Moved tinsel detection tables to separate file.
svn-id: r49694
2010-06-15 10:15:29 +00:00
Eugene Sandulenko 4d517ed0e9 Extended advancedDetector with depth parameter.
Now AD can search nested directories. By default it is turned off,
but there is new parameter to ADParameters struct. Usually value
of 2 is good enough for all purposes.

svn-id: r49653
2010-06-14 14:50:23 +00:00
Johannes Schickel 62717eafc4 Replace some strncpy usages with Common::strlcpy.
svn-id: r49086
2010-05-18 18:16:47 +00:00
Ori Avtalion 2fc9d6845b Apply patch #2982163 - CONFIG: Use HE keyword instead of HB for the Hebrew language
svn-id: r48645
2010-04-12 21:21:06 +00:00
Max Horn cac0ac66e2 COMMON: Get rid of Common::StringList
svn-id: r48287
2010-03-18 15:54:40 +00:00
Fabio Battaglia 8502d9248e tinsel: Add detection for Discworld 1 floppy EUR version
svn-id: r48088
2010-02-19 12:33:58 +00:00
Johannes Schickel aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Torbjörn Andersson c83058d30b LordHoto spotted the same kind of overlapping strcpy() call in one more place.
I didn't notice it because it never executed that part when I used Valgrind.

svn-id: r46945
2010-01-03 20:47:04 +00:00
Torbjörn Andersson f15db40927 Don't uses strcpy() on overlapping memory areas. It's undefined.
svn-id: r46944
2010-01-03 20:42:51 +00:00
Paul Gilbert 2d7c1e2c71 Corrected the Russian Discworld 1 MD5 values
svn-id: r46704
2009-12-29 08:56:41 +00:00
Paul Gilbert 84569c4792 Added MD5 data for Russian Discworld 1
svn-id: r46667
2009-12-28 06:24:06 +00:00
Max Horn 6b8dd7ab7a COMMON: Remove various variants of the md5_file / md5_file_string funcs; turned the (disabled) MD5 test code into a working unit test
svn-id: r46108
2009-11-23 22:30:22 +00:00
Max Horn 00822d5661 TINSEL: Move BMV player code into a new BMVPlayer class
svn-id: r45269
2009-10-20 14:06:17 +00:00
Paul Gilbert 6fa68445c4 Removed incorrect German Neon Edition MD5
svn-id: r44023
2009-09-10 11:38:04 +00:00
Fabio Battaglia f1683ae5fe tinsel: correct mac cd checksums, made on files extracted as raw data
svn-id: r44014
2009-09-08 20:08:29 +00:00
Fabio Battaglia cbdb0dcdfa Tinsel: added (disabled) Discworld 1 MAC detection entry
svn-id: r44011
2009-09-08 12:14:17 +00:00
Paul Gilbert bebc76b4d8 Added second German Neon Edition detection entry
svn-id: r44001
2009-09-07 11:07:19 +00:00
Paul Gilbert 6e5063aed2 Added the GUIO_NOSFX and GUIO_NOMUSIC flags to the first Discworld 1 demo entry
svn-id: r42611
2009-07-19 12:52:19 +00:00
Fabio Battaglia 1f24fe43a2 tinsel: proper detection entry for Discworld 1 Italian only CD
svn-id: r42356
2009-07-10 22:13:27 +00:00
Sven Hesse 341d875cea Added support for compressed sample files (patch #2815426 by m_kiewitz)
svn-id: r42020
2009-07-02 12:15:04 +00:00