Commit Graph

419 Commits

Author SHA1 Message Date
Le Philousophe
7e0048b4a3 ENGINES: Add ADDynamicGameDescription class
This class manages a buffer where all data usually stored in detection
plugin will get copied before unloading the plugin and starting the
game.

This class expects that two functions are present in every
GameDescription: sizeBuffer which calculates how many bytes we will need
to store the entry in RAM and toBuffer which copies the data in the
buffer and fix the pointers in the class.
At the end, it is expected that an ADDynamicGameDescription doesn't
depend anymore on data stored in the detection plugin.

The AD_GAME_DESCRIPTION_HELPERS macro allow to implement these functions
in all GameDescription which don't have any pointer except those in
ADGameDescription.
2024-06-30 18:39:06 +02:00
Le Philousophe
b61bd3ff85 ENGINES: Create a type aware advanced meta engine 2024-06-30 18:39:06 +02:00
Le Philousophe
90b886097f ENGINES: Create a type aware advanced detector 2024-06-30 18:39:06 +02:00
Cameron Cawley
ff9da88582 STARTREK: Better names for some of the MidiTracks values 2024-06-29 16:37:30 +03:00
Cameron Cawley
a7c304148f STARTREK: Always use enum values for MIDI tracks 2024-06-29 16:37:30 +03:00
Cameron Cawley
5336245f27 STARTREK: Always use enum values for sound effects 2024-06-29 16:37:30 +03:00
Peter
86a9fd66c5 JANITORIAL: Fix GCC 14 warnings
Fix repetitive warnings about template-id in constructors and destructors. This ensures C++20 compatibility. Warnings are encountered when compiling with GCC 14.
2024-05-26 00:00:45 +03:00
Matthew Jimenez
5219c99400 GRAPHICS: Move PaletteManager definition to a separate header 2024-03-12 12:24:00 +02:00
Cameron Cawley
51c3b3a015 STARTREK: Use OSystem::fillScreen() where possible 2024-01-07 11:09:34 +02:00
Le Philousophe
4400b8eea3 STARTREK: Migrate engine to Path 2023-12-24 13:19:25 +01:00
Vladimir Serbinenko
ae9de1acbc STARTREK: Switch from getDataFork to openFileOrDataFork 2022-12-11 21:32:30 +01:00
Cameron Cawley
e04000d4b0 COMMON: Move FFT, DCT, MDCT, RDFT, SineTable, CosineTable and getSineWindow into Math 2022-11-20 14:32:05 +01:00
athrxx
3636423b29 STARTREK: add appropriate render options to detection tables 2022-11-07 00:27:34 +02:00
Le Philousophe
1a5ef8794a STARTREK: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
Cameron Cawley
f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
trembyle
e600322c12 STARTREK: Use CD detection flag
May be helpful to differentiate CD/Floppy versions
2022-01-19 11:04:07 -05:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Eugene Sandulenko
9804ae380d
STARTREK: Fix loading of MIDI music 2021-12-21 00:21:53 +01:00
Orgad Shaneh
3919f53326 ENGINES: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
D G Turner
d107ac0dc8 STARTREK: Fix GCC Duplicated Branch Warning 2021-10-29 19:03:27 +01:00
eientei
94f9310a0f STARTREK: Mark CD demo as such in detection 2021-10-26 04:36:11 +03:00
eientei
78d269f7e9 STARTREK: Add 1993 Mac demo 2021-10-26 04:36:11 +03:00
Orgad Shaneh
fe104cc337 ENGINES: Use MetaEngine consistently for getting autosave slot
The autosave refactoring that was done in
7adad5aaf5 used g_engine for identifying the
autosave slot. This worked for in-game save/load, but doesn't fit when
called from the launcher.

Fix by passing MetaEngine to SaveStateDescriptor ctor and using it for this
query.

Amends 7adad5aaf5.
2021-10-24 16:46:06 +02:00
Eugene Sandulenko
33115992a0
STARTREK: Fix Mac version detection entry after MacResMan changes 2021-10-17 20:48:03 +03:00
trembyle
42ae6d184f STARTREK: Add detection for ST25 Mac demo
Found on Inside Mac Games December 1994.
2021-09-19 14:52:46 +02:00
Filippos Karapetis
5bead291d6 STARTREK: Initial work on the texts of the German and French versions
This is still a proof of concept, and only some of the first room texts
have been added
2021-08-30 22:05:30 +03:00
Filippos Karapetis
99b334f90f STARTREK: Fix loading of files in non-English versions - bug 12712 2021-08-30 15:19:48 +03:00
D G Turner
3e4ee7e23c STARTREK: Fix Coverity Warning for Identical Branches
CID 1394745
2021-08-26 22:10:18 +01:00
Orgad Shaneh
7adad5aaf5 ENGINES: Streamline auto-save write/delete protection
Some engines call setAutosave and some don't. isAutosave is used to
determine if a saved game is an autosave, but in fact, on most cases it
just falls back to comparing the name to "Autosave".

This is wrong for several reasons:
* Older versions of ScummVM used Autosave 0.
* The name "Autosave" is translated, so if you change the language, it
  won't be detected.

Instead of relying on the name, use the well-known getAutosaveSlot() from
Engine/MetaEngine.

Fixes #12735.
2021-08-23 13:34:35 +02:00
Cameron Cawley
644e7354f5 CREDITS: Update credits 2021-08-22 22:25:33 +03:00
Filippos Karapetis
714c10f38b STARTREK: Rewrite the common MUDD function text references 2021-08-17 21:17:36 +03:00
Filippos Karapetis
13b64f6cb7 STARTREK: Implement VENG common messages 2021-08-17 02:52:45 +03:00
Filippos Karapetis
db4756c628 STARTREK: Convert MUDD4 room text offsets to the new format 2021-08-17 02:22:26 +03:00
Filippos Karapetis
9d6f12d98b STARTREK: Covert VENG3 and VENG5-8 room text offsets to the new format 2021-08-17 00:49:49 +03:00
Filippos Karapetis
9ab4c23129 STARTREK: Avoid adding \0 to strings
These characters aren't needed at all in strings, so we can safely
ignore them
2021-08-16 20:48:31 +03:00
Filippos Karapetis
71e5241b50 STARTREK: The demo does not contain bridge computer topics
This allows the demo to proceed a bit further, but it still crashes,
as it has differences from the full version which haven't been
implemented yet
2021-08-16 20:32:49 +03:00
Filippos Karapetis
00ad57c613 STARTREK: Convert VENG4 room text offsets to the new format 2021-08-01 14:58:10 +03:00
Daniel Kamil Kozar
e12c0f3f4e STARTREK: Fix format-security warnings 2021-06-11 06:22:47 +01:00
ysj1173886760
2c93928e5f STARTREK: move debug channels to metaEngineDetection 2021-05-22 01:34:57 +02:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
D G Turner
eac50757db STARTREK: Fix Bug in text Command of Debug Console
This was incorrectly passing a single character, rather than a pointer
for the string.
2021-03-27 02:53:00 +00:00
D G Turner
804ea64f31 STARTREK: Fix GCC Warning for Implicit Copy Operator
This is emitted when -Wdeprecated-copy is enabled.
2021-03-27 02:31:45 +00:00
D G Turner
6769b2b93b STARTREK: Fix Memset on Non-Trivial Structure GCC Compiler Warnings 2021-03-22 13:51:16 +00:00
Filippos Karapetis
ff6ed65844 STARTREK: Convert more room texts to the new format 2021-02-21 14:34:57 +02:00
Filippos Karapetis
2d6b182487 STARTREK: Re-implement shared functionality in the LOVE mission 2021-02-20 22:04:14 +02:00
Filippos Karapetis
a465274c0e STARTREK: Update spockScan and mccoyScan calls 2021-02-20 21:32:52 +02:00
Filippos Karapetis
7401a55dcf STARTREK: Convert more room texts to the new format 2021-02-20 21:32:51 +02:00
Filippos Karapetis
bc45372332 STARTREK: Rewrite more room texts with the new format 2021-02-19 23:19:00 +02:00
Filippos Karapetis
31f2fc675c STARTREK: Convert more rooms to the new text resource format 2021-02-15 03:26:59 +02:00