640 Commits

Author SHA1 Message Date
D G Turner
19563ca0f3 TINSEL: Fix Shadowed Constructor GCC Compiler Warning 2020-05-15 07:56:14 +01:00
mataniko
581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +02:00
Filippos Karapetis
e8bc50e3f5 TINSEL: Remove dead code 2020-02-29 02:21:41 +02:00
Filippos Karapetis
63ae50e790 TINSEL: Replace usage of NULL with nullptr 2020-02-29 02:21:41 +02:00
Paul Gilbert
22db5b1459 TINSEL: Add detection for Discworld PSX Japanese 2020-02-24 18:32:13 -08:00
Eugene Sandulenko
e700b5a2bc TINSEL: One more compilation fix 2020-02-23 14:31:17 +01:00
Eugene Sandulenko
d8ef2bd723 TINSEL: Fix compilation 2020-02-23 14:27:38 +01:00
Filippos Karapetis
939f7cf2b7 TINSEL: Move all the music related functions into a new Music class 2020-02-23 14:51:01 +02:00
Filippos Karapetis
5e577729ec TINSEL: Fix compilation 2020-02-22 21:18:33 +02:00
Filippos Karapetis
57996bee7d TINSEL: Fix compilation 2020-02-22 20:52:43 +02:00
Filippos Karapetis
2d36d802f5 TINSEL: Remove unused process IDs 2020-02-22 20:04:59 +02:00
Filippos Karapetis
ae7f5ff95e TINSEL: Some work on the Japanese version of DW1 2020-02-22 19:16:30 +02:00
Filippos Karapetis
0fef57b924 TINSEL: Move the current background struct to the heap 2020-02-22 18:41:40 +02:00
Filippos Karapetis
64b750ab2e TINSEL: Move background related functions into a new Background class 2020-02-22 18:41:39 +02:00
Filippos Karapetis
eed258261a TINSEL: Merge PrimeBackground() and InitBackground() 2020-02-22 18:41:39 +02:00
Filippos Karapetis
6fa96182f7 TINSEL: Move font-related code into a new Font class
Also, remove some wrapper functions in tinlib.cpp
2020-02-22 18:41:39 +02:00
Paul Gilbert
a00e44ba6c ENGINES: Merge saveGameState virtual methods into a single one 2020-02-16 15:44:28 -08:00
Paul Gilbert
17dc909e2c TINSEL: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
Bastien Bouclet
b700f1fcd1 TINSEL: Add override keywords 2020-02-09 12:43:16 +01:00
Eugene Sandulenko
c40b96f5ae TINSEL: Added override keywords 2020-02-06 23:46:47 +01:00
Paul Gilbert
5b80320525 ENGINES: Adding override keyword to hasFeature methods 2020-02-04 20:04:11 -08:00
Eugene Sandulenko
556e2d72ce TINSEL: Added override keywords 2020-01-31 14:29:24 +01:00
D G Turner
1e278080a8 TINSEL: Fix Missing List End Markers in Detection Entries
This should avoid possible overruns causing crashes or other issues
during detection.
2019-12-04 04:49:01 +00:00
D G Turner
227182bbbf TINSEL: Use Advanced Detector LISTEND Macro in Detection Entries 2019-12-04 04:44:02 +00:00
D G Turner
b25c4b21fd TINSEL: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-30 23:12:30 +00:00
Paul Gilbert
3d112e1622 TINSEL: Add DW1 CD Argentum Collection detection 2019-11-16 19:38:11 -08: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
D G Turner
0c479251c7 TINSEL: Fix GCC Compilation Warnings
These are also associated with memset on non-trivial structures.
2019-08-25 09:09:26 +01:00
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
Adrian Frühwirth
a20f90cbb7 JANITORIAL: Fix formatting 2018-04-22 00:56:21 +02:00
Paul Gilbert
ea524fa792 TINSEL: Fix held items not in either inventory being lost 2018-04-20 22:27:33 -04:00
Paul Gilbert
da79ac1d42 TINSEL: Fix hang in DW1 GRA when using items on Temple big hammer 2018-04-18 21:06:08 -04:00
Paul Gilbert
4c65db13df TINSEL: Fix loading DW1 savegames with a held item 2018-04-18 21:06:08 -04:00
Bastien Bouclet
eae6930ae0 TINSEL: Remove now duplicate VER macro 2018-02-01 14:42:33 +01:00
Colin Snover
93d465f2e3 TINSEL: Increase maximum number of objects
This needs to be at least 374 to avoid crashes in the in-game
save/load dialogues with save games using the maximum 40 letters
per save game, so just round up to the next power of two (which
increases memory usage by a whopping ~20KiB) to give more than
enough space for long save game names.

Fixes Trac#6748.
2017-11-19 23:04:32 -06: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
Torbjörn Andersson
70a2ca8b7d JANITORIAL: Silence more GCC 7 warnings
All these fall through were marked as deliberate, so again I've only
changed the comment to silence GCC.
2017-08-06 13:30:51 +02:00
Paul Gilbert
9cda101b89 TINSEL: Fix some DW2 text/voice not playing all the way through 2017-07-16 11:07:39 -04:00
Ben Castricum
6f38c1e55d ALL: game state => saved game 2016-11-29 20:15:20 +01: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
406b8cf33b TINSEL: Move debug channel registration to the very top of the engine constructor 2016-07-28 11:45:33 +03:00
Eugene Sandulenko
4dc60b525d TINSEL: Fix class initialization 2016-06-17 12:10:11 +02:00
Eugene Sandulenko
f225442ad0 TINSEL: Fix illegal memory reads.
In case of "unnamed" case (see line 582) we were memcpy'ing 31 byte from
the heap.
2016-05-31 17:12:18 +02:00
Eugene Sandulenko
89890523c2 TINSEL: Guard against illegal memory writes 2016-05-31 17:12:18 +02:00