Commit graph

187 commits

Author SHA1 Message Date
athrxx
bd1dbecde9 TTS: (ENGINES) - add support for tts enable function
The new option only works as intended if the engine that have TTS support apply their own settings. It cannot be globally implemented before and after runGame(), since the engines don't all use the same config manager variables (sometimes "tts_enabled_speech", "tts_enabled" or "tts_narrator, sometimes more than one of these).
2022-04-26 21:08:41 +03:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Thierry Crozat
4680538951 SUPERNOVA: Fix buffer overflow for two dialogs
This was partially caused by a bug in the original source code
that was missing a comma between two strings for those two dialogs.
The original did not have a buffer overflow, but was not correctly
displaying the strings.

This fixes bug #12856.
2021-09-08 01:07:40 +01:00
taylorzhancher
fa8845e367
SUPERNOVA: Add Text To Speech support 2021-09-04 19:24:12 +01:00
sluicebox
8e1d90f8e4 ALL: Remove clearAllDebugChannels() from Engine dtors 2021-06-14 12:42:38 -05:00
ysj1173886760
489d605cad SUPERNOVA: move debug channels to metaEngineDetection 2021-05-22 01:34:57 +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
185fb72783 GUI: U32: Improve U32 code
- Revert accidentally put translations in mt32.cpp
- Use U32::format in some places earlier missed
- Add %u and %i for u32::format
- Add support for GUIErrorMsgFormat to use u32::format internally
- Use the above whereever needed
- Improve linux tts by removing redundant code
- Some places I had changed nullptr -> "". Revert this
2020-08-30 14:43:41 +02:00
aryanrawlani28
e22b32abfe GUI: U32: Use Common::U32String::format where necessary and GUIError to u32
- Where necessary as in, where translated messages are used.
- GUIErrorMessage now takes in U32String
- error messages across some engines use U32Strings. they are changed because they show a message dialog.
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
mataniko
581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +02:00
Paul Gilbert
9f175c4053 ENGINES: Cleanup of savegame filenames generation
This removes filename methods when it matched the Engine method.
Secondly, ensuring there was an overriden getSaveStateName method
for engines that didn't do the standard target.00x save filenames
2020-02-16 15:44:28 -08:00
Paul Gilbert
a00e44ba6c ENGINES: Merge saveGameState virtual methods into a single one 2020-02-16 15:44:28 -08:00
Paul Gilbert
3da28a4c25 SUPERNOVA: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
Jaromir Wysoglad
4c3f2c30af SUPERNOVA: Fix reading of .dat file
When searching for the right block in supernova.dat, the engine
didn't take into account the full size of each block (it thought,
it read 12 bytes less in each block) and thanks to that it
tryed to read one additional block at the end.
2019-09-18 16:05:16 +02:00
D G Turner
2c5cdfb37e SUPERNOVA: Fix Reported MSVC Compiler Warnings
These are from Henke37 via IRC.
2019-09-13 23:20:31 +01:00
Thierry Crozat
71e0f58775 SUPERNOVA: Stop any playing sound before loading a savegame
This fixes for exemple loading a savegame from the Museum in part 2
after triggering the alarm but before being caught. Before this
commit the alarm would continue to play after loading the savegame.
2019-09-13 01:08:30 +01:00
Thierry Crozat
1b92de6757 SUPERNOVA: Fix setting game speed with number keys in improved mode 2019-09-08 17:24:58 +01:00
Jaromir Wysoglad
fc3ae4c9b9 SUPERNOVA: Fix most of Codacy issues
* Fix mismatched delete in create_image.cpp
* Add shebangs to create_ms2_data.***.sh
* Reduce scopes of some variables
* Substitute bitwise and for logical and in
    GamaManager2::passageConstruction
2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
c2177f8453 SUPERNOVA: Merge getInput and waitOnInput methods. 2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
448db9f432 SUPERNOVA: Make improved mode an engine option. 2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
0366f3da27 SUPERNOVA: Add help screen translation 2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
e734872fc8 SUPERNOVA: Fix some code issues pointed by Criezy
Remove 2 unused variables and a function call with wrong datatype
2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
7164016b34 SUPERNOVA: Refactor .dat file access 2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
0e31a6163d SUPERNOVA: Merge create_supernova tools 2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
37c53c420f SUPERNOVA: Load info files from .dat file 2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
bcd62c0669 SUPERNOVA: Code refactoring
Add constant for inverting sections (number 128)
Move some initialization in initState from derived classes to
    base class.
Simpilfy AxacussCorridor4::onEntrance
2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
61975aa2e2 SUPERNOVA: Add improved mode 2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
9cac9a8592 SUPERNOVA: Fix bugs
Fix GUI not working after leaving text edit field

Forbid showing help, info, doc screens, when GUI isn't alowed,
this should mimic the original game better and also resolves
some issues.
2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
ab4af5c614 SUPERNOVA: Add info, doc, help screens for MS2 2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
3cf9cfbf78 SUPERNOVA: Merge in the supernova2 engine. 2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
33d7391f4a SUPERNOVA: Move part 1 files to it's own directory 2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
bc8393deaf SUPERNOVA: Divide GameManager into 2 classes
GameManager got divided into a base class, that will be used
for both parts and a derived class specific to only the first
part.
2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
5f355734fd SUPERNOVA: Partial merge of the engine
I am merging the second engine to the first one. Both should be
fully functional as before right now

Current merge file status:
console: should be done
graphics: should be done
detection: 0% merged
imageid: appears to not be used anywhere, so it may be removed
resman: partialy merged
rooms: totaly different, 0% merged
screen: should be done
screenstatic: done
sound: partialy done
state: a lot different, just started to merge
supernova: mostly done
2019-07-28 15:09:14 +01:00
Jaromir Wysoglad
ee5b907f62 SUPERNOVA: Rearange supernova and supernova2 files
Rearange files so that similar code is in the same order in
both engines.
2019-07-28 15:09:14 +01:00
Joseph-Eugene Winzer
8c4af9f175 SUPERNOVA: Adds text reader to view text files 2019-05-28 02:24:43 +02:00
Joseph-Eugene Winzer
38e04455fc SUPERNOVA: Adds Help screen 2019-05-28 02:24:42 +02:00
Joseph-Eugene Winzer
bd298f3b3d SUPERNOVA: Removes GameManager dependency for Screen
All calls from Screen member functions to the GameManager instance
are relocated to the wrapper functions in SupernovaEngine.
2019-02-06 09:42:11 +01:00
Joseph-Eugene Winzer
c20b960d80 SUPERNOVA: Adds renderImage overload for ImageId 2019-02-06 09:42:11 +01:00
Thierry Crozat
287f40358e SUPERNOVA: Save sleep savegame at end of normal saves
This replaces using slot 999 to save this savegame and allows
to properly handle having several playthroughs with a different
state when going to sleep. This is also similar to what the
original engine was doing.
2018-12-28 20:40:27 +01:00
Cameron Cawley
f6015086e1 ENGINES: Add GUIErrorMessageFormat to replace duplicated functions (#1455) 2018-12-19 08:31:26 +02:00
Joseph-Eugene Winzer
d4592b6077 SUPERNOVA: Removes global nullObject
Before nullObject was a static member of Object class and now a member
of GameManager. Also the Inventory constructor was extended for taking a
pointer to the nullObject that Invetory::get() returns if no Object was
found.
2018-04-15 18:47:33 +01:00
Joseph-Eugene Winzer
a4ac8895da SUPERNOVA: Removes renderImageSection() from SupernovaEngine
This function is never called by itself. It is a helper function for
renderImage().
2018-04-15 18:28:39 +01:00
Joseph-Eugene Winzer
0668f9d363 SUPERNOVA: Removes unused RNG instance 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer
3749f98dea SUPERNOVA: Fixes type camel case 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer
93dde5d235 SUPERNOVA: Renames Music/AudioIndex to Music/AudioId 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer
5008e88d4b SUPERNOVA: Fixes setCurrentImage 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer
6ea629f944 SUPERNOVA: Moves VGA Palette to screenstatic.cpp 2018-04-15 18:28:38 +01:00
Joseph-Eugene Winzer
2ead17f09f SUPERNOVA: Implements render functions
Although SupernovaEngine forwards render calls to screen, it also
exposed members publicly like _brightness. Therefore, a few changes were
necessary in rooms and state.
2018-04-15 18:28:29 +01:00
Joseph-Eugene Winzer
ab208d1077 SUPERNOVA: Implements image buffering 2018-04-15 18:23:12 +01:00