Commit graph

393 commits

Author SHA1 Message Date
Filippos Karapetis
d376e6095e STARTREK: Fix loading of files in non-English versions - bug 12712 2021-08-30 15:22:18 +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
Filippos Karapetis
2a6a3637ea STARTREK: Remove some obsolete TODOs 2021-02-15 03:26:58 +02:00
Filippos Karapetis
e9300f33d5 STARTREK: Fix the text scanner and convert 3 rooms to the new format 2021-02-08 03:11:46 +02:00
Filippos Karapetis
748aec5783 STARTREK: Refactor room text handling to use offsets (first part)
This is a major change, which allows us to read room texts directly
from RDF files in a deterministic way. The previous attempt to read
texts on the fly failed with some texts at runtime, which made it
unreliable. Additionally, the scope of all room text IDs has been
reduced to each room.

With this change, it's now possible to support text in CD and floppy
versions and support multiple game languages, without hardcoding all
of the game texts in the engine source.

This is 50% done (29 out of 55 rooms), with the following left to be
done:
- MUDD mission rooms (need to improve the text reader for these)
- TRIAL mission rooms (need to improve the text reader for these)
- SINS mission rooms (need to improve the text reader for these)
- The rest of VENG mission rooms

The DEMON, TUG, LOVE, FEATHER and part of the VENG mission rooms have
been converted.
2021-02-08 03:11:46 +02:00
Filippos Karapetis
9327e5a381 STARTREK: More bridge sequences functionality 2021-01-24 23:13:09 +02:00
Filippos Karapetis
eb8e1a33fd STARTREK: More functionality for bridge sequences and crew responses 2020-12-29 16:14:03 +02:00
Filippos Karapetis
f7d0670522 STARTREK: Remove more calls to blank sounds 2020-12-29 16:14:03 +02:00
Filippos Karapetis
1705cbc846 STARTREK: Use the SFX enum instead of hardcoded values 2020-12-29 16:14:03 +02:00
Filippos Karapetis
49395f2a8a STARTREK: Rename sound IDs and remove calls to blank sounds 2020-12-29 16:14:02 +02:00
Filippos Karapetis
2227b2a3a2 STARTREK: More bridge-related functionality 2020-12-29 16:14:02 +02:00
Filippos Karapetis
df67983e68 STARTREK: Sync several missing fields in saved games
Most of these are related to the bridge screens
2020-12-29 16:14:02 +02:00
Filippos Karapetis
0f8194ccd6 STARTREK: More work on mission ending, mission points and captain's log 2020-12-29 16:14:02 +02:00
Filippos Karapetis
c6d3f1df65 STARTREK: Ensure that we're not reading past the end of RDF files 2020-12-29 16:14:01 +02:00
Filippos Karapetis
a333cf4490 STARTREK: More bridge sequences functionality 2020-12-22 21:08:50 +02:00
Filippos Karapetis
5ce0e00b7d STARTREK: Add a console command to play bridge sequences 2020-12-22 21:08:50 +02:00
Filippos Karapetis
85b8806ca8 STARTREK: More work on bridge sequences
Also, unify the Common::String types
2020-12-21 03:13:56 +02:00
Filippos Karapetis
d0253df616 STARTREK: Fix type check 2020-12-21 03:13:56 +02:00
Eugene Sandulenko
074b558e16 STARTREK: Attempt to fix compilation 2020-12-20 17:00:09 +01:00
Eugene Sandulenko
c4111c9e32 STARTREK: Fix checking for the modifier keys 2020-12-20 16:50:38 +01:00
Filippos Karapetis
af09a8bbfd STARTREK: Whitespace fixes 2020-12-20 16:57:04 +02:00
Filippos Karapetis
7f09ab5868 STARTREK: More bridge actions functionality 2020-12-20 16:53:53 +02:00
Filippos Karapetis
1cd061fa00 STARTREK: Always return a value in leftClickEvent() 2020-12-20 16:53:53 +02:00
Filippos Karapetis
e46e7e022b STARTREK: Fix action type 2020-12-20 16:53:53 +02:00
Vladimir Serbinenko
b76576abd4 STARTREK: Specify that action is signed char
x86 uses signed chars but this is architecture-dependent and on arm it's
unsigned and leads to compilation failure
2020-12-19 23:23:19 +02:00
Filippos Karapetis
8947282344 STARTREK: More bridge sequence functions. Start implementing beaming up 2020-12-19 22:06:09 +02:00
Filippos Karapetis
fc8b185197 STARTREK: Slight cleanup 2020-12-19 01:56:08 +02:00
Filippos Karapetis
de20df5ccc STARTREK: Add some planet data, and add mission performance sequences 2020-12-19 01:50:40 +02:00