Commit graph

433 commits

Author SHA1 Message Date
Eugene Sandulenko
949027a01e
ENGINES: [l-w]: Turn debug enums from bitfield into plain enums 2025-02-22 21:55:59 +01:00
Eugene Sandulenko
f6bb29d2fc
STARTREK: Fix debugC() usage 2025-02-22 21:39:25 +01:00
Filippos Karapetis
0df0a87819 STARTREK: Clip chapter 2 (Tug) mission score to acceptable values 2025-01-25 00:42:32 +02:00
Eugene Sandulenko
879eba5c32
CONFIGURE: Replace mt32emu component with 'midi'
This component disables all MIDI-related things when unused,
including MT-32 emulator, Fluidsynth, TiMidity and Sonivox
2024-12-26 22:54:56 +01:00
Hubert Maier
8fab2c1270
JANITORIAL: STARTREK: Fix typos 2024-12-25 18:01:21 +02:00
Eugene Sandulenko
d780708c96 ENGINES: Add mt32emu as a feature and component
Add it to engines that have MIDI playback.

This essentially compiles the emulator only when an engine that
can potentially use it (e.g. MIDI) is enabled
2024-12-25 00:34:39 +01:00
Eugene Sandulenko
fdecb6afca ENGINES: Add components to configure.engine's explanatory comment 2024-12-25 00:34:39 +01:00
Eugene Sandulenko
d01189b27c
STARTREK: Sort files in module.mk alphabetically 2024-10-24 15:07:02 +02:00
Eugene Sandulenko
934fa3d66b
STARTREK: Fix linking on ARM64 macOS
This requires function pointers to be aligned to 64 bits, and
from the other hand, Action struct requires packing on MSVC, otherwise
it produces the following warning:

  Warning    C4121    'StarTrek::RoomAction': alignment of a member was sensitive to packing

This commit adds a dummy member to the Action struct, but in general, this
design is not ideal.
2024-10-24 13:10:40 +02:00
sluicebox
4200d6575c ALL: Return result from MetaEngine::removeSaveState 2024-10-18 09:41:03 +03:00
Hubert Maier
2303e5ab37 JANITORIAL: STARTREK: Fix typos 2024-09-16 20:24:23 +03:00
Donovan Watteau
a71d0c93dc STARTREK: Fix -Wunused-but-set-variable warning 2024-08-17 09:24:54 +03:00
Cameron Cawley
cb155eb39c STARTREK: Fixes to get the Mac demo in-game 2024-07-12 18:41:39 +03:00
Cameron Cawley
0a58dc395d STARTREK: Fix detection of the DOS CD demo 2024-07-12 18:41:39 +03:00
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