D G Turner
e07723e1d1
TINSEL: Fix compilation on FreeBSD with C++-11 enabled.
...
This is part of bug #3615056 and is due to NULL being defined as
nullptr when C++-11 is enabled, which is not valid being assigned
to a integer value.
2013-09-28 01:33:43 +01:00
Johannes Schickel
01dea8bd67
Merge pull request #378 from lordhoto/pluggable-engines-translations
...
RFC: Pluggable Engines: I18N: Move specification of engine specific files to enginedir/POTFILES
2013-09-12 15:38:13 -07:00
Filippos Karapetis
4c90548380
TINSEL: Add the English Mac version of DW1 (bug #3614864 )
2013-08-23 14:01:07 +03:00
Johannes Schickel
378387c903
I18N: Move specification of engine specific files to enginedir/POTFILES.
...
This allows to keep the engines to specfiy the files for translation close to
the engine sources itself.
Thanks to criezy for his suggestion on this approach.
2013-08-12 17:54:31 +02:00
Torbjörn Andersson
56431cfc59
TINSEL: Fix DW2 assertion when quitting during cutscene
...
Call _bmv->FinishBMV() before setting g_pCurBgnd to NULL. Otherwise,
there will be an assertion if quitting during a cutscene while a
subtitle is being shown. (At least I think that's the condition.)
(Also, it seems to be a good idea to call it before EndScene(),
because even though there was no assertion, I got a lot of warnings
when I did it after.)
2013-08-10 16:56:07 +02:00
Johannes Schickel
2977ff8ba0
TINSEL: Take advantage of Surface::getPixels.
2013-08-03 04:02:52 +02:00
Torbjörn Andersson
a790fe0e80
TINSEL: Remove self-assignment (CID 1003626)
...
However, dreammaster has confirmed this line was in the original
so I'm leaving it commented-out in case there is a genuine bug
still lurking there.
2013-07-20 05:32:11 +02:00
Sven Hesse
989ea7cb56
JANITORIAL: Remove trailing whitespace
2013-07-14 19:01:47 +02:00
Filippos Karapetis
468274a83a
TINSEL: Clip mouse position to be within the screen (bug #3613765 )
...
The mouse cursor warping code via the keyboard allows the cursor to go
outside the screen. We now limit the cursor's position to always stay
within the screen
2013-06-20 23:34:48 +03:00
Filippos Karapetis
4b6907141b
TINSEL: Fix incorrect byte swapping on BE systems (bug #3614416 )
...
This is a regression from commit c90d56355f
Thanks to canavan for his testing and bisecting work
2013-06-17 21:08:29 +03:00
Filippos Karapetis
7456a2ca23
TINSEL: Revert the incorrect flagging of DW2 entries as CD versions
...
This reverts the changes done to the DW2 entries in commit d4a354c1
.
We only distinguish between floppy and CD versions if a game had both a
CD and a floppy version released. DW2 was only released as a CD version,
so the extra flagging of the DW2 entries as CD was redundant, and caused
confusion regarding previous saved games to users that readded the DW2
detection entries after this change
2013-06-06 01:26:02 +03:00
Matthew Hoops
0031c41db8
COMMON: Change kPlatformPC to kPlatformDOS
...
"PC" was very ambiguous and now it matches what we show in the GUI.
This also corrects sword2's platform to Windows.
2013-05-02 18:43:10 -04:00
Filippos Karapetis
f3f3d5bcbf
TINSEL: Clear the screen with the correct color in DW1 Mac
2013-05-01 03:53:00 +03:00
Filippos Karapetis
5692c378ec
TINSEL: Simplify palette endianess conversions
2013-05-01 03:50:29 +03:00
Torbjörn Andersson
50c8fae6ec
TINSEL: Reorder loop condition to fix out-of-bounds access
...
This should fix CID 1003943 and CID 1003944.
2013-04-26 23:38:20 +02:00
Filippos Karapetis
95f92ed9de
TINSEL: Add support for enhanced music in the Mac version of DW1
2013-04-12 19:31:11 +03:00
Filippos Karapetis
687e47d332
TINSEL: Remove the unused ghost palette
2013-04-12 07:19:53 +03:00
Filippos Karapetis
94b328fa7f
TINSEL: Fix black/white colors in the Mac version of DW1
2013-04-12 07:19:53 +03:00
Filippos Karapetis
53e82436e6
TINSEL: Simplify overflow calculation inside MacDrawTiles()
...
Thanks to wjp for noticing this
2013-04-12 07:19:52 +03:00
Filippos Karapetis
a9886f1c26
TINSEL: Fix typo
2013-04-12 07:19:52 +03:00
Filippos Karapetis
d45534d29d
TINSEL: Remove the unused noFadeTable parameter from the fader functions
2013-04-12 07:19:52 +03:00
Willem Jan Palenstijn
2d1fd3b554
ALL: Fix typo (existant->existent)
2013-02-23 22:07:32 +01:00
Torbjörn Andersson
304ac2a7c4
TINSEL: Fix another Clang analyzer warning
...
Whether or not SaveFailure() can delete the save file, we want to
invalidate the save name because it probably only lives on the
stack so the pointer will become invalid once DoSave() has ended.
2013-01-02 21:25:51 +01:00
Filippos Karapetis
55fee6d97b
TINSEL: Enhanced music is not supported in the Mac version of DW1
...
Also, did some minor whitespace formatting
2012-12-18 02:24:46 +02:00
Filippos Karapetis
1214b7a7e4
TINSEL: Enable the detection entries for DW1 Mac (both the demo and the full version)
2012-12-15 21:07:38 +02:00
Filippos Karapetis
6f81d914f2
TINSEL: Fix sprite clipping in DW1 Mac
2012-12-15 19:52:27 +02:00
Filippos Karapetis
96397a5741
TINSEL: Initial version of the graphics drawing function for DW1 Mac
...
Still some graphical glitches remain, as clipping isn't done correctly
2012-12-15 08:14:55 +02:00
Filippos Karapetis
b41d78bdd8
TINSEL: Fix intro scene skipping in DW1 Mac
2012-12-15 08:14:55 +02:00
Filippos Karapetis
1713d7ee3c
TINSEL: Always convert the inventory objects to the native endianess
...
This is needed for DW1 Mac
2012-12-15 08:14:54 +02:00
Matthew Hoops
a0863dfb3f
TINSEL: Silence gcc warning
2012-12-13 17:46:16 -05:00
Filippos Karapetis
11b920d8ae
TINSEL: Fix a comment in playDW1MacMusic()
...
Thanks to clone2727 for noticing
2012-12-13 03:41:15 +02:00
Filippos Karapetis
07994fb361
TINSEL: Add support for the digitized music in DW1 Mac
2012-12-13 03:09:41 +02:00
Filippos Karapetis
a3f22b8804
TINSEL: Unify the PSX graphics drawing code with the rest
...
This is nitpicking, for uniformity which I forgot to add in a previous
cleanup commit
2012-12-13 02:00:59 +02:00
Filippos Karapetis
fe3737f7a3
TINSEL: Remove outdated comment
2012-12-13 01:59:33 +02:00
Filippos Karapetis
576d92e286
TINSEL: Clean up the sound code
2012-12-13 01:58:47 +02:00
Filippos Karapetis
b1732f9aca
TINSEL: Clean up the graphics draw types code
2012-12-11 23:46:57 +02:00
Filippos Karapetis
45fcbdcd8c
TINSEL: Fix misleading comment
2012-12-11 22:46:50 +02:00
Filippos Karapetis
532194db1f
TINSEL: Fix the colors in the Mac version of DW1
2012-12-11 22:40:19 +02:00
Filippos Karapetis
344d6bc2da
TINSEL: An additional endianess fix for DW1 Mac
...
This will also need testing on a BE system
2012-12-11 04:04:04 +02:00
Filippos Karapetis
f23e7a246c
TINSEL: Merge the different TinselV0/V1 graphics code handlers
2012-12-11 04:03:22 +02:00
Filippos Karapetis
ee613fe77b
TINSEL: The speech file in DW1 Mac demo/full is LE
2012-12-11 03:14:10 +02:00
Filippos Karapetis
e08fa202d6
TINSEL: Handle the invalid max polygons value in DW1 Mac
2012-12-11 03:10:50 +02:00
Filippos Karapetis
6c0a24fd7c
TINSEL: Add an initial incomplete graphics decoder for DW1 Mac
...
Part of the game graphics is now shown
2012-12-11 03:06:50 +02:00
Filippos Karapetis
e21a547667
TINSEL: Fix what seems to be two bugs in the endianess handling code
...
This will need to be tested in a BE system for correctness. Fixes
the Mac version of DW1
2012-12-11 03:04:59 +02:00
Filippos Karapetis
394ff22232
TINSEL: Add another check to skip the non-MIDI music of DW1 Mac
2012-12-11 02:59:30 +02:00
Filippos Karapetis
b05fa7f204
TINSEL: Add resource handling of the BE resources in DW1 Mac
...
This is the second attempt. All the BE resources of DW1 Mac are
handled correctly now. Added READ_16, READ_32, FROM_16, FROM_32 and
TO_32 to handle all of the different cases where endianess is
already handled. Note that the game scripts are LE, so these
haven't been changed
2012-12-11 02:56:48 +02:00
Filippos Karapetis
ce87175bed
TINSEL: Revert the BE -> LE resource conversion for DW1 Mac
...
This was a bad idea, as we ended up with another place where the
resource files were processed. Thus, I'm moving back to handling the
BE resources of the Mac version in the engine itself
2012-12-11 02:41:51 +02:00
Torbjörn Andersson
4914bea358
TINSEL: Remove unused variable
2012-12-10 20:07:17 +01:00
Filippos Karapetis
b532a81b42
TINSEL: Add a WIP BE To LE SCN file conversion code (unfinished)
...
This is a cleaner approach to handle the Mac version of DW1 (demo
and full versions - refer to bug #3110936 ). This way, we can keep
the game engine as LE even with the Mac BE resource files.
Both the demo and the full version progress up to drawing the scene
graphics now and crash because of the currently unhandled bitmap
chunk.
2012-12-10 17:38:24 +02:00
Filippos Karapetis
c90d56355f
TINSEL: Simplify the scene entrance handling code
...
This also reverts the rest of the BE resource handling code
2012-12-10 17:38:23 +02:00