Commit Graph
99 Commits
Author SHA1 Message Date
Le Philousophe 700a965361 LURE: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 04eacfa7d3 LURE: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Coen Rampen e2a1362bf9 LURE: Improve AdLib support
This improves the AdLib support for Lure of the Temptress, which was unfinished.
2021-07-02 14:16:50 +02:00
Martin Gerhardy 9d82fa51df COMMON: removed USE_TTS check from engines
OSystem now just returns a nullptr if there is no text to speech manager instance
(because none is compiled into the binary, or the system doesn't provide support
for it). This removed the need for the engine authors to add scummvm osystem compile
time options checks into their engine code
2021-05-03 14:13:41 +03:00
NMIError 6454b69026 LURE: Fix game over screen
The music playing at the game over screen would only play once and send MIDI
CC 18 messages, which are not defined in the MIDI standard. I added looping and
removed the non-standard MIDI messages to prevent possible compatibility
issues.

The music for cutscenes and for the game over screen had some strange volume
differences compared to the original interpreter which seem to be caused by a
bug in the original interpreter where volume adjustments from sound effects
would carry over into the music. I've added a note to explain this difference.
2020-12-08 17:00:28 +01:00
NMIError 81c514ac8f LURE: Add MT-32 initialization icon blinking 2020-12-06 16:37:08 +00:00
NMIError f45a55d809 LURE: Add audio initialization icon
When sending SysEx data to the MT-32, the game blinks an icon in the lower left
corner of the screen. This change adds that icon. It is stored in the
executable, so I added code to create_lure_dat to extract the icon and add it
to the ScummVM data file. The new version of this file is now required to run
the game.
2020-12-06 16:37:08 +00:00
NMIError 991061ee1b LURE: Fix music/SFX distinction
Distinction between music and SFX was made based on the most significant bit in
the sound number byte. This does not accurately reflect which MIDI sequences
are music or a sound effect.

Instead, I've added a flag which can be passed to
SoundManager::musicInterface_Play to indicate whether the sound is music or a
sound effect. All music is started from hard-coded animation sequences, so this
flag can be passed from ScummVM code when appropriate.
2020-12-06 16:37:08 +00: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 d4d5b8906e GUI: U32: Begin making TTS take in U32Strings for saying
Only for strings without an explicit action. The first level takes in a u32 string, encodes it, and passes it along further with the default action

- For gui widgets, the strings are passed in as native u32 strings.
- For everything else, they are being converted to u32 by Common::convertToU32... and then being passed along
2020-08-30 14:43:41 +02:00
Cameron Cawley cc5abf5ebb TTS: Fix crash when TextToSpeechManager is unavailable, clean up formatting 2020-05-27 12:43:49 +02:00
neuromancer d0571e6ab5 LURE: Enable the optional use of TTS to read descriptions as a narrator 2019-12-20 23:50:44 +02:00
Colin Snover bc3c8bd8d2 LURE: Replace use of strdup with Common::String 2018-08-18 16:30:05 +02:00
Paul Gilbert 11e33ba3fc JANITORIAL: Removing trailing spaces after int casts 2018-08-17 20:30:20 -07:00
Eugene Sandulenko 0c091f4faa LURE: Add support for Russian version 2016-01-12 23:53:14 +01:00
Johannes Schickel b03ca0e80a LURE: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Thierry Crozat 335ba979a2 LURE: Fix engine crash in copy protection screen with AZERTY keyboard
Fixes bug #3539031 - "LURE: Crash at Copy Protection Screen".

This reverts the previous fix which only worked for QWERTY keyboards
and made the issue worse for AZERTY keyboards. It now uses the ASCII
code instead of the keycode for the sanity check.
2012-06-30 20:48:22 +01:00
D G Turner 4789e0f026 LURE: Fix engine crash in copy protection screen.
Fixes bug #3539031 - "LURE: Crash at Copy Protection Screen".

Previously, the code didn't prevent keyboard events with modifiers being
used. Since the ascii values for these were outside the 0-9 numeric
range, this resulted in an invalid frame number being used and thus the
engine aborted at an asertion.
2012-06-29 23:37:11 +01:00
Christoph Mallon e40ba4c135 JANITORIAL: Simply use *x instead of *x.get() on smart pointers. 2012-03-13 15:43:59 +01:00
Matthew Hoops 9539017ee3 ALL: initialise -> initialize 2011-05-25 11:17:11 -04:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn 84184aabc0 ALL: colour -> color 2011-04-14 14:12:35 +02:00
David Turner 067fbe23f6 Fix for Lure memory error indicated by Valgrind on Restart/Restore Screen (Temptress over Castle).
This screen is displayed if you lose the fight with the Skorl in the Dragon Caves etc.

This fix should be reviewed and then backported to v1.1.0 branch.

svn-id: r48421
2010-03-30 02:13:49 +00:00
Max Horn bce959e046 LURE: Remove evil 'using namespace' from header files
svn-id: r47396
2010-01-19 23:48:55 +00:00
Max Horn 2e964baeef Some const correctness changes; cleanup
svn-id: r44850
2009-10-09 21:47:33 +00:00
Max Horn f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Filippos Karapetis 5028d5a68b Reverted my commit #44290 - apparently, it was a bad idea, as g_engine is a hack
svn-id: r44311
2009-09-24 17:07:27 +00:00
Filippos Karapetis a70351e5ea Changed some references from LureEngine to the global g_engine (e.g. calls to shouldQuit()), to minimize places where LureEngine is referenced
svn-id: r44290
2009-09-24 06:53:03 +00:00
Johannes Schickel ac5a6552ca Switched LURE to use a single central RandomSource instance, instead of (sometimes) creating a new RandomSource every function call.
svn-id: r43715
2009-08-24 23:04:25 +00:00
Max Horn 9b160804ab Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
svn-id: r34700
2008-09-30 12:27:38 +00:00
Christopher Page 17ce8db211 Lure works with the new GMM implementation
svn-id: r32996
2008-07-10 22:34:48 +00:00
Christopher Page 6e3474896c Kyra and Lure are now using the new _quit flag
svn-id: r32772
2008-06-25 00:55:18 +00:00
Filippos Karapetis 6a9acd7a5e Replaced ManagedList with Common::SharedPtr in the rest of the lure engine
svn-id: r31420
2008-04-06 12:00:37 +00:00
Torbjörn Andersson ff688574c4 Changed spaces to tabs.
svn-id: r31362
2008-04-02 04:23:00 +00:00
Jordi Vilalta Prat 66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Paweł Kołodziejski b74d38586d fixed potential unitialized variable
svn-id: r30574
2008-01-19 20:53:28 +00:00
Paul Gilbert e6c20003c0 Enhanced Surface::writeSubstring to crop any string that exceeds the width of the surface - this fixes a visual glitch in the German version where some lines were so long they were exceeding the size of the screen
svn-id: r30547
2008-01-18 10:49:48 +00:00
Paul Gilbert 00ecb126e3 Bugfix for the position and size of the copy protection dialog instructions in the German version
svn-id: r30524
2008-01-17 09:05:56 +00:00
Paul Gilbert b535b070f3 Fix to show talk dialogs in EGA mode using the EGA palette
svn-id: r30286
2008-01-06 02:09:18 +00:00
Paul Gilbert 6eb64102a4 Fix to remove a tab character from the GPL header
svn-id: r30238
2008-01-05 12:45:14 +00:00
Paul Gilbert 9e02b32220 Made standard EGA background colour a constant
svn-id: r30233
2008-01-05 11:24:37 +00:00
Paul Gilbert 10719d5a12 Added extra handling for EGA dialogs, and added formalised parameters/methods for text positioning
svn-id: r30226
2008-01-05 10:34:34 +00:00
Paul Gilbert b2d2bd6f2d Room backgrounds now display in EGA mode
svn-id: r30138
2008-01-02 03:36:19 +00:00
Paul Gilbert 99dfb8bcbc Added support for using scroll wheel for making selections in the Save/Restore dialog and action lists
svn-id: r30070
2007-12-29 09:51:25 +00:00
Paul Gilbert 52dc147f8c Added mouse scrolling support to action menus and the save/restore dialog
svn-id: r30065
2007-12-29 00:31:15 +00:00
Paul Gilbert 67a49e712a Bugfix for string decoding to use the article of the destination character rather than the talking character
svn-id: r30036
2007-12-28 07:45:22 +00:00
Paul Gilbert b4043cb403 Bugfix for correctly handling \n characters in WordWrap method
svn-id: r29903
2007-12-19 01:47:45 +00:00
Paul Gilbert 550aea90ff Bugfix for font sizes indexing - dereferencing a character > 128 was giving a negative index
svn-id: r29900
2007-12-18 08:05:19 +00:00
Paul Gilbert e2e846a4b2 Added extra debug statements to the talk dialog display process
svn-id: r29894
2007-12-17 11:23:19 +00:00