Commit Graph

950 Commits

Author SHA1 Message Date
D G Turner
d77cf95a18 BUILD: Split engines.mk down to a single file per engine.
This is the second part of allowing engines to be added dynamically.
Each folder in engines/ which must contain a file named "engine.mk"
containing the make definitions for that engine.
2013-11-24 00:48:01 +00:00
D G Turner
aa947c9474 BUILD: Split configure.engines down to a single file per engine.
This is the first part of allowing engines to be added dynamically.
They are placed into a folder in engines/ which must contain a file
named "configure.engine" to add the engine, which is pulled into the
top level configure script automatically.
2013-11-24 00:45:38 +00:00
Johannes Schickel
67ce244567 WINTERMUTE: Use const_iterator in BaseFileManager::registerPackages. 2013-11-23 21:01:39 +01:00
Johannes Schickel
7409f3eb54 WINTERMUTE: Slight interator usage cleanup. 2013-11-23 21:00:39 +01:00
Johannes Schickel
5166fce2eb WINTERMUTE: Remove another unused variable. 2013-11-23 21:00:39 +01:00
Johannes Schickel
9a78ac265d WINTERMUTE: Make BaseFileManager::registerPackages case agnostic.
The old version did only work as expected when all the filenames were all
lowercase. This seems to be the case for most (or even all?) WME games.
However, we are better safe than sorry and make the code case agnostic.
2013-11-23 21:00:33 +01:00
Johannes Schickel
29fae3914e WINTERMUTE: Remove unused variables. 2013-11-23 20:45:13 +01:00
Einar Johan Trøan Sømåen
b1bcf12791 WINTERMUTE: Add a fake detection entry for Czech Dead City.
The language data for the Czech version are in data.dcp, but the pairs
of {language.dcp, data.dcp} get preference over just a match on data.dcp,
thus we need to detect Czech as one of these pairs, giving the user the
choice of language on detection. In this case I just copied the english-detection.
2013-11-18 12:05:21 +01:00
Einar Johan Trøan Sømåen
ff574579bb WINTERMUTE: Add quite a bit of hackery to allow Reversion 1.3 to select languages properly.
Reversion 1.3 seems to have one language file in it’s main-folder, and
a full set in languages/ (not language/ like a few other games), the names
of the language-files are also different from what we’ve seen earlier.
2013-11-18 12:00:34 +01:00
Einar Johan Trøan Sømåen
eceaf7f8cb WINTERMUTE: Add bold-font support for FreeSans.ttf (and only FreeSans for now).
This is mostly a quick fix to solve the rather common case of wanting
to use bold Arial. This will not handle the user adding the actual Arial.ttf
file to the folder yet, but atleast it solves the common case of having
to fallback to FreeSans.
2013-11-15 15:27:50 +01:00
Filippos Karapetis
4af998b96c WINTERMUTE: Move the isAscii() string changing code to another function 2013-11-08 12:17:48 +02:00
Filippos Karapetis
492cefacb6 WINTERMUTE: Allow utf8ToWide() and wideToUtf8() work with ASCII strings
This is needed for English versions of multilingual games, which use
UTF-8 strings, but we can treat them as plain ASCII, since wide and
UTF-8 strings are not yet supported in Wintermute. This allows at least
the English versions of these games to run.

This allows Reversion 2 and Shaban to start
2013-11-08 12:04:07 +02:00
Einar Johan Trøan Sømåen
1e6a37394f Merge pull request #396 from JenniBee/md5s
Adding detection for more fan games
2013-11-07 23:10:04 -08:00
Filippos Karapetis
eba0c0ff62 WINTERMUTE: Add the keycode for the ESC key
This is used by Looky
2013-11-07 13:47:38 +02:00
JenniBee
90481b6409 WINTERMUTE: Adding detection for more games. 2013-11-06 16:12:03 -05:00
Einar Johan Trøan Sømåen
c0f9455b28 WINTERMUTE: Remove unused transfer-function. (AnsiStringArray). 2013-11-05 14:02:54 +01:00
Einar Johan Trøan Sømåen
cc33cf74ae WINTERMUTE: Transfer Common::Strings explicitly when saving/loading. 2013-11-05 13:59:55 +01:00
Einar Johan Trøan Sømåen
4e2bec5311 WINTERMUTE: Transfer Const Char* explicitly when saving/loading. 2013-11-05 13:58:02 +01:00
Einar Johan Trøan Sømåen
237d3d86ec WINTERMUTE: Transfer Char* explicitly when saving/loading. 2013-11-05 13:54:25 +01:00
Einar Johan Trøan Sømåen
d07409def7 WINTERMUTE: Transfer Sint32s explicitly when saving/loading. 2013-11-05 13:48:11 +01:00
Einar Johan Trøan Sømåen
7892188bcf WINTERMUTE: Transfer Uint32s explicitly when saving/loading. 2013-11-05 13:31:13 +01:00
Einar Johan Trøan Sømåen
d6b9d7de8f WINTERMUTE: Remove BasePlatform::setRect (replace with member-call) 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen
efb8031b3c WINTERMUTE: Remove BasePlatform::isRectEmpty (replace with member-call). 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen
3fb4183909 WINTERMUTE: Remove BasePlatform::setRectEmpty (replace with member-call) 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen
211b8c9732 WINTERMUTE: Remove unused BasePlatform-functions (showWindow/setCapture/releaseCapture) 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen
4c3c707671 WINTERMUTE: Transfer Doubles explicitly when saving/loading. 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen
538c5935f9 WINTERMUTE: Transfer Point32s explicitly when saving/loading. 2013-10-29 02:59:53 +01:00
Einar Johan Trøan Sømåen
95d2ed1a9b WINTERMUTE: Transfer Rect32s explicitly when saving/loading. 2013-10-29 02:59:52 +01:00
Einar Johan Trøan Sømåen
dc4e3150f3 WINTERMUTE: Correct some doxygen-comments in TransparentSurface. 2013-10-29 02:59:52 +01:00
Einar Johan Trøan Sømåen
047a7171ee WINTERMUTE: Transfer Vector2s explicitly when saving/loading. 2013-10-29 02:59:52 +01:00
Einar Johan Trøan Sømåen
ee5adb84c5 WINTERMUTE: Transfer bytes explicitly when saving/loading. 2013-10-29 02:59:52 +01:00
Einar Johan Trøan Sømåen
6b4adab654 WINTERMUTE: Transfer booleans explicitly when saving/loading. 2013-10-28 19:19:12 +01:00
Einar Johan Trøan Sømåen
ba17ed9490 WINTERMUTE: Change BaseObject::getHeight() to return int32 instead of int. 2013-10-28 18:38:17 +01:00
Einar Johan Trøan Sømåen
889c3c9801 WINTERMUTE: Deconstify UIObject::getHeight() to fix a shadowed overload. 2013-10-28 18:37:20 +01:00
Einar Johan Trøan Sømåen
ad58641242 WINTERMUTE: Fix compile errors in XCode 5 caused by nullptr-issues. 2013-10-28 18:23:05 +01:00
Matthew Hoops
821a7430da WINTERMUTE: Remove useless __inline 2013-10-17 23:39:05 -04:00
Willem Jan Palenstijn
2271bf404c WINTERMUTE: Remove superfluous assignments 2013-10-09 11:29:13 +02:00
Willem Jan Palenstijn
f248a09f0f WINTERMUTE: Fix displayTransOffset
Regression from 14cb1f09c0.
This fixes font border drawing.
2013-10-08 23:30:21 +02:00
Willem Jan Palenstijn
7a3fb2f06a WINTERMUTE: Call updateScreen() every frame, even without updates.
This fixes expose events with the opengl backend.
2013-10-07 19:49:17 +02:00
Willem Jan Palenstijn
2b926cbe48 WINTERMUTE: Fix typo causing tiled image corruption 2013-10-06 23:17:05 +02:00
Willem Jan Palenstijn
8c8b1b7da7 WINTERMUTE: Integrate SDL_rotozoom code for scale/rotoscale 2013-10-06 17:36:32 +02:00
Willem Jan Palenstijn
14cb1f09c0 WINTERMUTE: Partially fix rotoscale coordinate confusion
This fixes two issues:

* The rendering rectangle was not rotated, causing garbage to be
drawn if the rotated rectangle did not fully cover the unrotated
rectangle, or sprites to be clipped in the opposite case.

* The order of mirror/scale/rotation operations was inconsistent.
This commit does scaling first, followed by rotation. (This is only an
issue because scaling is specified separately in X and Y directions.)
For now only FIXMEs are added for mirroring.
2013-10-06 17:34:19 +02:00
Willem Jan Palenstijn
f19fd06e24 WINTERMUTE: Remove outdated comment 2013-10-06 14:24:42 +02:00
Willem Jan Palenstijn
ead4e83180 WINTERMUTE: Remove presumably outdated off-by-one correction
This correction no longer seems to be necessary, and removes an
off-by-one in the J.U.L.I.A. Demo main menu screen.
2013-10-06 14:24:38 +02:00
Willem Jan Palenstijn
15d57c8a9c WINTERMUTE: Let pixel blending functions be inlined 2013-10-05 17:45:00 +02:00
Willem Jan Palenstijn
0e2cf28d99 WINTERMUTE: Speed up scale()
This is a tweaked version of a patch from eriktorbjorn.
2013-10-05 00:10:09 +02:00
Willem Jan Palenstijn
25bff46fe6 WINTERMUTE: Update full screen on ScreenChanged
This fixes the screen not updating after e.g., scaler changes.
Bug #3594245.
2013-10-03 22:00:21 +02:00
Willem Jan Palenstijn
3384befff7 WINTERMUTE: Add missing break
Confirmed by Mnemonic.
2013-10-03 11:14:31 +02:00
Willem Jan Palenstijn
98efd44407 WINTERMUTE: Remove unused _drawNum 2013-10-02 10:54:43 +02:00
Willem Jan Palenstijn
408880fa54 WINTERMUTE: Fix regression with _skipThisFrame
This broke loading in Broken Circle demo.

We now reset the queue state when skipping a frame, and re-use
lastFrameIter instead of keeping track of lastAddedTicket separately.
2013-10-02 09:39:07 +02:00