Einar Johan Trøan Sømåen
2fa47e2efd
Merge pull request #587 from jammm/scummvm_local
...
WINTERMUTE: Added mappings for VKeyCodes->ScummVM KeyCodes
2015-02-24 23:33:57 +01:00
jammm
320139760c
WINTERMUTE: Add mappings for VKeyCodes->ScummVM KeyCodes
...
Fix bug #6654 (white chamber - some keys don't work)
Wintermute games on ScummVM used ScummVM keycodes for keyboard mapping,
whereas the game scripts only accepted Windows VKeyCodes. Therefore an initial
set of mappings are added and the debug room is now loading properly, when
HOME is pressed (Rest of the keys need to be tested in-game)
2015-02-24 23:04:09 +05:30
jammm
6ca8d22fb1
WINTERMUTE: Fixed parentFolder name check when testing for "language"/"languages", Fix bug #6655 (Dead City - hotspot text issue)
...
Fixed Wintermute incorretly parsing folder names with trailing \
(Windows-only issue)
It seems that calling getParent returns trailing '\' which is absent on POSIX based file systems but not on Windows. This causes Wintermute to load outline_red2.font from russian.dcp, which is not desired. This is fixed by calling it->getName() directly, which returns the folder name (without the trailing '\').
2015-02-22 02:54:45 +05:30
Torbjörn Andersson
dfe04491c1
JANITORIAL: Remove unnecessary semicolons
2015-01-21 01:29:22 +01:00
Einar Johan Trøan Sømåen
784241c17b
Merge pull request #437 from tobiatesan/wme_subtitles
...
WME Subtitles
2014-11-05 20:22:34 +01:00
Tobia Tesan
9787fc5768
WINTERMUTE: Fix formatting in video_subtitler.h
2014-11-05 19:45:39 +01:00
Tobia Tesan
998da18c05
WINTERMUTE: Move var declarations inside loop in loadSubtitles
2014-11-05 19:42:17 +01:00
Tobia Tesan
2f082f6e43
WINTERMUTE: Remove redundant explicit call to Common::String constructor
2014-11-05 19:31:10 +01:00
Tobia Tesan
215ac157e6
WINTERMUTE: Declare vars inside appropriate block in loadSubtitles
2014-11-05 19:28:42 +01:00
Tobia Tesan
0a2c1a809f
WINTERMUTE: Keep _[show|current]Subtitle private in video_subtitler.h
2014-11-05 19:07:03 +01:00
Einar Johan Trøan Sømåen
ee876b56b2
WINTERMUTE: Add VK-translations for F1-F12 and HOME
2014-11-04 18:34:06 +01:00
Einar Johan Trøan Sømåen
2f868ae5b6
WINTERMUTE: Add detection for Bickadoodle 1.2 (Fixes bug 6735)
2014-11-04 18:08:20 +01:00
Einar Johan Trøan Sømåen
f1eb2513f0
WINTERMUTE: Use macros to simplify detection_tables.h
2014-11-04 17:52:37 +01:00
Tobia Tesan
b460323e58
WINTERMUTE: killAllSounds only if WME targetExecutable >= 1.8.6
...
This fixes #6647
2014-11-04 17:52:25 +01:00
Tobia Tesan
dfe465e26b
WINTERMUTE: Introduce WMEGameDescription
...
I aped what has been done with AGS: in engines/agi/detection.cpp, adding
a struct that includes ADGameDescription at the beginning.
This is also recommended in advancedDetector.h
2014-11-04 17:52:01 +01:00
Filippos Karapetis
50c1d5c3a1
WINTERMUTE: Remove trailing whitespace
2014-10-28 15:38:52 +02:00
Tobia Tesan
e12f30ed03
WINTERMUTE: Add a bunch of comments in loadSubtitles
2014-10-15 21:36:47 +02:00
Tobia Tesan
a4b9bc5877
WINTERMUTE: Rename a bunch of variabiles in loadSubtitles
2014-10-15 21:36:47 +02:00
Tobia Tesan
e9b722278e
WINTERMUTE: Declare and init size in one place in VideoSubtitler
2014-10-15 21:36:47 +02:00
Tobia Tesan
3cef639f91
WINTERMUTE: new char[str.size()+1] in BaseStringTable::expand
...
This makes room for the EOS char.
2014-10-15 21:36:47 +02:00
Tobia Tesan
d5ed8c29f1
WINTERMUTE: Turn _subtitles into Common::Array<SubtitleCard> in VideoSubtitler
...
This necessarily loses const in SubtitleCard's attributes
2014-10-15 21:36:47 +02:00
Tobia Tesan
2fc69d770c
WINTERMUTE: Initialize tokenSomething vars in VideoSubtitler
...
MSVC complains otherwise.
2014-10-15 21:36:47 +02:00
Tobia Tesan
c6930d9a64
WINTERMUTE: Use int32 for _lastSample in VideoSubtitler
...
We are thus making room for the sentinel == -1
2014-10-15 21:36:47 +02:00
Tobia Tesan
ebb48a1704
WINTERMUTE: s/delete array/delete[] array/
2014-10-15 21:36:47 +02:00
Tobia Tesan
f525514da5
WINTERMUTE: Use BaseGame->expandStringByStringTable(&Common::String) in SubtitleCard
2014-10-15 21:36:46 +02:00
Tobia Tesan
578edde66f
WINTERMUTE: Const'fy members of class SubtitleCard
2014-10-15 21:36:46 +02:00
Tobia Tesan
856e281bf1
WINTERMUTE: Remove useless constructor from SubtitleCard.
2014-10-15 21:36:46 +02:00
Tobia Tesan
5f25cf1bd7
WINTERMUTE: Don't bother inheriting BaseGame in SubtitleCard
2014-10-15 21:36:46 +02:00
Tobia Tesan
f1ae8e6e8d
WINTERMUTE: Introduce BaseGame->expandStringByStringTable(&Common::String)
2014-10-15 21:36:46 +02:00
Tobia Tesan
599390a5ad
WINTERMUTE: Lose unnecessary if() in VideoTheoraPlayer
2014-10-15 21:36:46 +02:00
Tobia Tesan
4742acf939
WINTERMUTE: Rename VideoTheoraPlayer->_subtitles to _foundSubtitles for clarity
2014-10-15 21:36:46 +02:00
Tobia Tesan
1a571d9611
WINTERMUTE: Avoid doing check before delete (deleting 0-pointer is safe)
2014-10-15 21:36:46 +02:00
Tobia Tesan
388fbdb6eb
WINTERMUTE: Rename VideoSubtitle to SubtitleCard
2014-10-15 21:36:46 +02:00
Tobia Tesan
dd820a7a1e
WINTERMUTE: Turn a bunch of uint into uint32 in VideoSubtitle
2014-10-15 21:36:46 +02:00
Tobia Tesan
7b4084b7e0
WINTERMUTE: s/uint32 _lastSample/long _lastSample/
2014-10-15 21:36:45 +02:00
Tobia Tesan
a4d5d14581
WINTERMUTE: Turn display() and update() into void functions.
...
No idea why they were bools in the first place.
2014-10-15 21:36:45 +02:00
Tobia Tesan
2acb2f558c
WINTERMUTE: Add clarification comment in loadSubtitles
2014-10-15 21:36:45 +02:00
Tobia Tesan
40c5b01aad
WINTERMUTE: Preserve const when handing chars over to drawText
2014-10-15 21:36:45 +02:00
Tobia Tesan
7c6f9772d3
WINTERMUTE: Save frames as uint rather than long
...
It's just as good: at 30 FPS, this allows for
2 ^ 32 / 30 / 60 = 2386093 mins, which is, I guess, a reasonable limit.
2014-10-15 21:36:45 +02:00
Tobia Tesan
afb3ae3034
WINTERMUTE: Treat edge case - prevents crash if SRT file is blank.
2014-10-15 21:36:45 +02:00
Tobia Tesan
581aff7f8f
WINTERMUTE: Keep a bunch of attrs private in VideoSubtitler
2014-10-15 21:36:45 +02:00
Tobia Tesan
a78a4d40dd
WINTERMUTE: Use Common::String in place of char *text in loadSubtitles
2014-10-15 21:36:45 +02:00
Tobia Tesan
8decf3d742
WINTERMUTE: Remove ////-style separators from imported subtitle code
2014-10-15 21:36:45 +02:00
Tobia Tesan
2eee488e36
WINTERMUTE: Do some refactoring over a bunch of attrs in VideoSubtitle
...
Conflicts:
engines/wintermute/video/video_subtitler.cpp
2014-10-15 21:36:45 +02:00
Tobia Tesan
f2441da3da
WINTERMUTE: Make sure subtitle files could be found before anything else
2014-10-15 21:36:44 +02:00
Tobia Tesan
6d16fdbf4a
WINTERMUTE: Expand subtitles by string table
2014-10-15 21:36:44 +02:00
Tobia Tesan
647b721744
WINTERMUTE: Refactor/Reformat VideoSubtitler::update
2014-10-15 21:36:44 +02:00
Tobia Tesan
113e837d55
WINTERMUTE: Correctly delete _subtitler (which is not an array)
2014-10-15 21:36:44 +02:00
Tobia Tesan
0475fd1a5c
WINTERMUTE: Declare counters as uint to match Array::size()
2014-10-15 21:36:44 +02:00
Tobia Tesan
621a068c00
WINTERMUTE: Mass ScummVM-style renaming in subtitles code
2014-10-15 21:36:38 +02:00