Commit Graph
692 Commits
Author SHA1 Message Date
Eugene Sandulenko 2a8cb94d04 TINSEL: Added missing translation mark 2020-11-28 17:53:00 +01:00
Eugene Sandulenko 279a277bb3 TINSEL: Marked Saturn DW1 as unsupported 2020-11-28 17:41:24 +01:00
Eugene Sandulenko dfffded8f8 TINSEL: Use AD_ENTRY2s macro in the detection table 2020-11-28 17:41:23 +01:00
Paul Gilbert 9b46b79060 TINSEL: Fix loading of handle table for Tinsel 1 2020-11-16 18:56:02 -08:00
Eugene Sandulenko 7ff469982c TINSEL: Fix warnings 2020-11-14 19:27:09 +01:00
Eugene Sandulenko 81161e0f95 TINSEL: Fix warnings 2020-11-10 02:14:41 +01:00
Einar Johan Trøan Sømåen fabf2309e0 TINSEL: Let TinselV2 cover both V2 and V3, and add TinselV3.
Also adjust SetupHandleTable to use TinselV2 directly,
so that it also works for V3 with the above adjustment.

Some of this is based on kimskoglund's Tinsel Noir
sourceforge repository.
2020-10-31 00:24:53 +01:00
Einar Johan Trøan Sømåen afdc87d99f TINSEL: Error out when trying to start Discworld Noir for now. 2020-10-31 00:09:03 +01:00
Einar Johan Trøan Sømåen e692edeea5 TINSEL: Add detection for the Discworld Noir Demo 2020-10-31 00:09:03 +01:00
Einar Johan Trøan Sømåen 561a0efda3 TINSEL: Add detection for Discworld Noir
Some of this is adapted from kimskoglund's
tinsel noir repository at Sourceforge:
https://sourceforge.net/projects/tinselnoir/
2020-10-30 23:37:49 +01:00
Eugene Sandulenko 7ff34bc9ec PLUGINS: MetaEngineStatic -> MetaEngineDetection 2020-10-11 23:14:39 +02:00
Eugene Sandulenko 7ea6781043 PLUGINS: PLUGIN_TYPE_METAENGINE -> PLUGIN_TYPE_ENGINE_DETECTION 2020-10-11 23:12:32 +02:00
Thierry Crozat fc1371ecfa Revert "TINSEL: Replace initializer list with constructor"
This reverts commit 8105d91802.
There was a question mark on this commit because the ANIM
struct is used in the MOVER struct that is zero-initialized
using memset, and adding a constructor to it make it non-POD
type.

Also now the engine has been marked as using c++11, so the
original code will not break buildbot.
2020-10-04 18:51:50 +01:00
Eugene Sandulenko 7182c33e84 TINSEL: Mark engine as C++11 2020-10-04 10:38:32 +02:00
Filippos Karapetis 22ee8519a9 TINSEL: Fix compilation with non-C++11 compilers. Some renaming 2020-10-04 04:26:42 +03:00
Filippos Karapetis 1f519f4738 TINSEL: Remove resolved TODO 2020-10-04 01:17:54 +03:00
Filippos Karapetis 2b62338e5e TINSEL: Enable the Return to Launcher feature
A lot of the global variables have been moved into classes, which get
reinitialized on launch. The rest of the global variables are reset
when the engine gets destroyed. Thus, this feature can be safely
enabled now.
2020-10-04 01:15:24 +03:00
Filippos Karapetis 086f1832e5 TINSEL: Update metaengine.cpp with the changes to SG_DESC_LEN 2020-10-04 01:15:23 +03:00
Filippos Karapetis 94997ef7d3 TINSEL: Rename variables of the Dialogs class 2020-10-04 01:15:23 +03:00
Filippos Karapetis 94fae0c94d TINSEL: Move all dialog-related functions into a new Dialogs class 2020-10-04 01:15:23 +03:00
Filippos Karapetis 1bda5728a9 TINSEL: Reset more global vars upon engine destruction 2020-10-04 01:15:22 +03:00
Filippos Karapetis ae91b7e056 TINSEL: Reset more global vars upon engine destruction 2020-10-04 01:15:22 +03:00
Filippos Karapetis 9c9fc0cf2b TINSEL: Reset more global vars upon engine destruction 2020-10-04 01:15:22 +03:00
Filippos Karapetis 05e7af7c65 TINSEL: Reset more global vars upon engine destruction 2020-10-04 01:15:21 +03:00
Filippos Karapetis 672ab3cca3 TINSEL: Clear some more vars upon engine destruction 2020-10-04 01:15:21 +03:00
Filippos Karapetis e1d1d72db8 TINSEL: Rename variables in the Scroll class, and move some defines 2020-10-04 01:15:21 +03:00
Filippos Karapetis 9322b11fd8 TINSEL: Move all scroll-related functions into a new Scroll class 2020-10-04 01:15:20 +03:00
Filippos Karapetis efb0acb24f TINSEL: Clear some global vars upon engine destruction 2020-10-04 01:15:20 +03:00
Filippos Karapetis bbf81aa216 TINSEL: Move code into class destructors 2020-10-04 01:15:20 +03:00
Filippos Karapetis 5bb0332383 TINSEL: Rename variables in the Handle class 2020-10-04 01:15:20 +03:00
Filippos Karapetis ae2e05cbd3 TINSEL: Move all handle-related functions into a new Handle class 2020-10-04 01:15:19 +03:00
Filippos Karapetis 8c50aa8902 TINSEL: Rename some actor variable and struct names 2020-10-04 01:15:19 +03:00
Filippos Karapetis bb54f3cd4f TINSEL: Move all actor-related functions into a new Actor class
Also, merge the two different SetMoverZ() functions
2020-10-04 01:15:18 +03:00
aryanrawlani28 d26bbe521c ENGINES: ALL: Finish renaming ME & AME classes
- ME -> MetaEngineStatic (static parts)
- MEC -> MetaEngine (dynamic parts)
2020-10-03 14:56:36 +02:00
aryanrawlani28 a56dc094b9 ENGINES: ALL: Move detection_enums -> detection.h
- Cleans up headers quite a bit.
2020-10-03 14:56:36 +02:00
aryanrawlani28 29ceb07959 ENGINES: ALL: Revert detection submodule to be directly present in the engine directory
- DETECT_OBJS are present and added inside an engine's modules.mk file.
2020-10-03 14:56:36 +02:00
aryanrawlani28 f3b9477893 ENGINES: ALL: Add header guards for the new detection-header files. 2020-10-03 14:56:36 +02:00
aryanrawlani28 8189a05316 ENGINES: ALL: Adapt to changes for new plugins by defining a new detection module
For each engine:
- Make a new folder detection
- Move detection-related files inside the folder
- Add a new module "enginename/detection"
- Add DETECT_OBJS here
- Adjust the normal engine module to remove detect_objs
- Adjust every file for the new changes.
2020-10-03 14:56:36 +02:00
aryanrawlani28 b1be077085 TINSEL: Split detection features & adapt to new plugins. 2020-10-03 14:56:36 +02:00
Matthew Duggan 8105d91802 TINSEL: Replace initializer list with constructor
Some compilers don't like extended initializer lists.
2020-09-26 13:32:08 +09:00
Matthew Duggan 674e0ad0bc TINSEL: Remove field initializer from Cursor
It's initialized in the constructor anyway, and some compilers don't like it.
2020-09-26 12:40:11 +09:00
Filippos Karapetis 41d4212da8 TINSEL: Remove an unneeded static 2020-09-25 22:24:15 +03:00
Filippos Karapetis 0931d7d3fc TINSEL: rework a static variable, and use C++ style lists 2020-09-25 22:24:14 +03:00
Filippos Karapetis c83e7cd6b0 TINSEL: Rename variables in the Cursor class 2020-09-25 22:24:14 +03:00
Filippos Karapetis 4f269c76d1 TINSEL: Move all cursor-related functions into a new Cursor class 2020-09-25 22:24:14 +03:00
Eugene Sandulenko c65f3e071c ALL: Remove ADGF_TESTING flags before the 2.2.0 release 2020-09-13 13:09:02 +02:00
aryanrawlani28 4b6976c558 GUI: U32: Reduce number of files changed and fixes
Up until last commit, everything was working fine but the amount of files changed was too large. This commit tries to reduce the changes.

- Add a fake constructor to Keymap, text-to-speech, setDescription (save-state)
- Redirecting functions for PopUpWidget::appendEntry, ButtonWidget::setLabel, GUIErrorMessage
- Use the above functions and constructors to reduce changes in Engines
- Fix warnings being in unicode. Only output english text in - Warnings, Errors, etc.
- Mark some strings as "translation" strings. (Not yet added to POTFILES)
- Remove some CP related things from po/modules.mk
- Previously used some Common::convertToU32 where it was not necessary, replace this with u32constructor
2020-08-30 14:43:41 +02:00
aryanrawlani28 bed05ea134 GUI: U32: Fix compilation errors across entire project
After the initial changes just to scummvm/gui for u32, this commit includes the whole project

- Widget creations now always have u32 descriptions, labels, or tooltips
- Message dialogs make use of default arguments instead of providing the same argument explicitly
- encode String::format properly before passing on as argument where necessary
- Modify hugo utils (yesNoBox and notify box) to use u32
- Also provide fake constructors for the above which redirect to the u32 constructor
- Convert all keymap descriptions to u32 across all engines
- showConfirmationDialog in mohawk now uses u32
- showScummVMDialog also uses u32
- Scumm engine has dialogs now which use u32
- General fixes and wrapping convertToU32String for setLabels and related functions
- Add a fake constructor to MesssageDialog which redirects to the u32 constructor
2020-08-30 14:43:41 +02:00
Paul Gilbert e05a64992b TINSEL: Workaround for black talk text showing for Mac DW1
I'm not sure of the underlying cause, but as a suitable
workaround, when playing the Mac version it'll simply use
the tooltip font instead, which is at least properly visible
2020-07-13 19:11:19 -07:00
Paul Gilbert 293881c016 TINSEL: Include filename when giving unsupported compression errors 2020-07-11 09:36:52 -07:00