250 Commits

Author SHA1 Message Date
Filippos Karapetis
e8f0e9e998 STARTREK: Rename the different showText() functions for disambiguation
Hopefully, this will fix the AmigaOS and DS builds
2019-06-11 01:28:12 +03:00
Filippos Karapetis
05301c240b STARTREK: Load more messages from RDF files
The whole Demon chapter has been converted to the new logic.
The offsets for the extra room messages have been hardcoded, for now,
inside loadOtherRoomMessages(), until we figure out how they are
referenced.
2019-06-11 00:48:16 +03:00
Filippos Karapetis
709d606e01 STARTREK: Adapt many usages of Common::SharedPtr() to regular pointers 2019-06-11 00:48:16 +03:00
Filippos Karapetis
3f7f1a2410 STARTREK: Remove the FileStream wrapper class 2019-06-11 00:48:15 +03:00
Thierry Crozat
835671d10a STARTREK: Fix use of uninitialized variable 2019-06-03 21:13:00 +01:00
Thierry Crozat
66a335eb18 Revert "STARTREK: Start adding a console"
This reverts commit 33fb9809c3a1353d927a3c7dfa41e673d79a089e.
The engine/startrek/console.h and engine/startrek/console.cpp
files were missing from that commit, which break compilation.
2019-05-28 23:55:35 +01:00
Filippos Karapetis
33fb9809c3 STARTREK: Start adding a console
We need to properly inject it to all inner screen update loops
2019-05-28 21:44:07 +03:00
Filippos Karapetis
e1416534e1 STARTREK: Fix regression with saving/loading 2019-05-28 21:42:30 +03:00
Filippos Karapetis
42ac19e804 STARTREK: Start reading text from RDF files, instead of hardcoding it
Rooms DEMON0 and DEMON5 have been partially adapted to the new logic.

This isn't yet fully functional, for the following reasons:
- We only read the main text block. There are also some others which
are not handled yet. The unhandled blocks have been kept in text.cpp
- We load text in dictionaries, splitting the strings in look and talk.
However, there's a third category (look with a talker), which isn't
handled yet
- Text is loaded per-room, but there are enhancements where text and
samples are loaded from other rooms. These need to be refactored
2019-05-28 21:41:58 +03:00
Lothar Serra Mari
310377033f STARTREK: Add detection for reported English floppy variant
Reported by ccorbacho in trac/#10921
2019-05-28 08:11:49 +03:00
Matthew Stewart
944370c349 STARTREK: Fixes to drawR3Shape; red planet renders 2019-05-28 08:08:52 +03:00
Matthew Stewart
552b88cbd5 STARTREK: Bugfix to map preview of republic 2019-05-28 08:08:52 +03:00
Matthew Stewart
add9b3e699 STARTREK: Saving for VENG mission 2019-05-28 08:08:52 +03:00
Matthew Stewart
c9918c3064 STARTREK: Common code for VENG mission 2019-05-28 08:08:52 +03:00
Matthew Stewart
702aa6f6cb STARTREK: VENG8 text changes 2019-05-28 08:08:52 +03:00
Matthew Stewart
0715c64b38 STARTREK: VENG8 2019-05-28 08:08:52 +03:00
Filippos Karapetis
4ade45cb11 STARTREK: Improve game responsiveness
- Add a delay after screen updates
- Do not update the screen when drawing the background - this is unnecessary
- Fix memory leak when drawing the background
2019-05-27 21:14:08 +03:00
Filippos Karapetis
430b87d5ff STARTREK: Change more fields to Common::String, and fix shadowed vars 2019-05-27 20:46:04 +03:00
Filippos Karapetis
daf2f07e6b STARTREK: Use Common::String for animation strings 2019-05-27 19:39:29 +03:00
Filippos Karapetis
8885508237 STARTREK: Refactor code to remove more gotos 2019-05-27 19:11:10 +03:00
Filippos Karapetis
b0699f703e STARTREK: Fix memory leak 2019-05-27 18:25:57 +03:00
Filippos Karapetis
81294feb70 STARTREK: Refactor code so that gotos are not used in DEMON6 2019-05-27 18:25:10 +03:00
Filippos Karapetis
67f49429ae STARTREK: Replace getRectEncompassing() with extend() 2019-05-27 15:45:05 +03:00
Filippos Karapetis
f6af273fca STARTREK: Fix MSVC warnings
- Disable duplicate if block
- Fix potentially uninitialized variables
- Change _activeMenu to be a regular pointer, instead of a SharedPtr - it was not
initialized correctly
- Fix struct packing in structs with pointers to complex objects
- Fix sound initialization
- Fix memory leaks (handles to files which were never deleted)
2019-05-27 14:53:44 +03:00
Bastien Bouclet
9a4c0ae281 ENGINES: Normalize the getName() result of metaengines
Also-By: Matthew Hoops <clone2727@gmail.com>
2018-12-10 06:47:27 +01:00
D G Turner
807b0f84c2 STARTREK: Add Detection Entry for English Demo.
This can be found at:
https://archive.org/details/StarTrek25thAnniversaryDemo
2018-09-26 02:47:10 +01:00
D G Turner
399fa33e47 STARTREK: Add Detection Entry For German Version of Judgement Rites. 2018-09-25 17:31:10 +01:00
Strangerke
a6e8744159 STARTREK: remove dead code, simplify if statement by moving out code identical in both branches 2018-08-31 00:24:00 +02:00
Strangerke
ae512d3bb3 STARTREK: Initialize more variables in graphics 2018-08-31 00:24:00 +02:00
Strangerke
9ac5f6c6da STARTREK: Initialize some variables in sound 2018-08-31 00:24:00 +02:00
Strangerke
0a70f6f18b STARTREK: Fix an uninitialized variable in bitmap 2018-08-31 00:24:00 +02:00
David Fioramonti
47c0e27017 STARTREK: Simplify sine table usage
The if checks that StarTrekEngine::sin is doing to evaluate the
correct index for the sine table lookup are already done in
Common::SineTable::at().
2018-08-18 16:30:57 +02:00
David Fioramonti
0805ac2be3 STARTREK: Update cos/sin table constructor change
They now take in the size rather than the power of 2 exponent.
2018-08-18 16:30:57 +02:00
David Fioramonti
16ee8aa69f STARTREK: Make atan table static
Currently, it is reloaded every atan call.
2018-08-18 14:17:36 +02:00
David Fioramonti
54419e045a STARTREK: Detect another ST25 CD/DOS English variant 2018-08-18 14:17:36 +02:00
Strangerke
3fc6680f4f STARTREK: Silence a CppCheck warning 2018-08-10 07:47:44 +02:00
Strangerke
0355ebdacf STARTREK: Reduce a couple of variable scope, add a CHECKME 2018-08-10 07:31:07 +02:00
Strangerke
2c11e4d2aa STARTREK: Fix compilation using MSVC9 2018-08-10 00:31:39 +02:00
D G Turner
9715307872 STARTREK: Fix Various Compiler Warnings. 2018-08-09 23:06:07 +01:00
D G Turner
85ebfd835d STARTREK: Possible Fix for OUYA Toolchain Build Error.
The size of the void StarTrekEngine::drawR3Shape(R3 *r3) function is
very large, and this is using quite a lot of large variables on the
stack, rather than by heap allocation.

The exact cause is unclear, but this provokes an internal GCC error /
bug in the Android OUYA toolchain. To try to avoid this, this commit
changes several of the large local allocations from stack to heap i.e.
using new and delete[] to try to avoid this.
2018-08-09 22:11:01 +01:00
D G Turner
d7a977b152 STARTREK: Fix Compiler Warning from PS2 Toolchain. 2018-08-09 22:10:36 +01:00
D G Turner
237fb44ec0 STARTREK: Reorder Math Code to Simplify and Fix Compiler Warnings. 2018-08-09 21:35:57 +01:00
D G Turner
8c4b448d31 STARTREK: Fix Accesses to Uninitialized Variable. 2018-08-09 19:35:14 +01:00
D G Turner
86c6e3f460 STARTREK: Fix Various Compiler Warnings. 2018-08-09 19:02:00 +01:00
D G Turner
cb55775f60 STARTREK: Fix Various Compiler Warnings. 2018-08-09 15:08:24 +01:00
D G Turner
7e4faf2111 STARTREK: Hopefully Fix Remaining Compilation Issues. 2018-08-09 14:37:35 +01:00
D G Turner
42a1b579cb STARTREK: Even More Compilation Fixes. 2018-08-09 14:17:39 +01:00
D G Turner
cc9f820115 STARTREK: Further Compilation Fixes.
Further cases of int vs. int32 / TextRef usage.
2018-08-09 13:59:29 +01:00
D G Turner
52372dea70 STARTREK: Further Compilation Fixes.
Mismatch in types caused compilation failure for ports where int was
not identical to int32 which is the typedef for TextRef.
2018-08-09 13:24:00 +01:00
D G Turner
c5f2d0c1a7 STARTREK: Further Fix For Compilation. 2018-08-09 11:09:01 +01:00