Commit Graph

255 Commits

Author SHA1 Message Date
Johannes Schickel
0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Eugene Sandulenko
23d74fddb4 CONFIGURE: Introduced new engine dependency: highres
Some backends like GCW0 do no support graphics >320x240 due to
the hardware limitation (downscaling is possible but it will ruin
the pixel hunting which is often part of the gameplay).

Instead of manually updating the list of engines, we now introduce
a new dependency.

I marked all relevant engines, but some, like tinsel, require more
work with putting their relevant high-res games under USE_HIGHRES
define.
2016-03-05 14:25:56 +01:00
Johannes Schickel
de609c0a92 TOLTECS: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Johannes Schickel
7a34596c29 TOLTECS: Only request actual save slots in listSaves. 2016-01-26 16:35:30 +01:00
Johannes Schickel
3ae3a497f2 TOLTECS: Remove superflous default value registration for extra GUI options. 2015-12-28 00:14:11 +01:00
Torbjörn Andersson
bfebfbc127 TOLTECS: Use the Miles audio drivers for AdLib and MT-32
There doesn't seem to be much music in the game, so I've only been
able to test it with the music when riding the trolley. The MT-32
music is just as bad as in DOSBox, and you should feel bad.
2015-06-28 11:56:58 +02:00
Filippos Karapetis
1f2db34042 TOLTECS: Blacklist a pirated CD-RIP version (bug #6690)
This is a known pirated version, where all the audio has been removed.
Thus, no support will be added for that version.
2014-08-06 15:07:31 +03:00
Johannes Schickel
ae4ffe01f0 ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd. 2014-05-27 02:04:08 +02:00
Johannes Schickel
daa8d57a86 ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf. 2014-05-27 02:04:07 +02:00
Strangerke
fffb3db0a6 TOLTECS: Reduce the scope of one more variable 2014-03-02 18:10:31 +01:00
Strangerke
418de45d9c TOLTECS: Reduce a variable scope, move a variable to boolean 2014-03-02 11:43:46 +01:00
Strangerke
fd995fa449 TOLTECS: Apply CppCheck performance recommendations 2014-03-02 11:40:05 +01:00
Johannes Schickel
8b9afc9d92 TOLTECS: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
D G Turner
01365b62b9 TOLTECS: Add missing getDebugger() for engine API. 2013-12-07 02:28:42 +00:00
Johannes Schickel
0e017f007a Merge pull request #375 from digitall/engineAutoPlug
RFC: Pluggable Engines #2 (No Python, just evolution of current configure shell and make code)
2013-11-26 02:27:11 -08:00
Strangerke
30441cc7c1 TOLTECS: Fix spacing errors 2013-11-24 18:52:45 +01:00
D G Turner
ef85456859 BUILD: Remove need for engine.mk in each engine directory.
Each engine now only has to provide a single configure.engine file
adding the engine into the configure script, which then produces the
required other files automatically.
2013-11-24 00:48:01 +00:00
D G Turner
1ac01d2333 BUILD: Remove need for engine-plugin.h in engines.
This is now generated automatically by the configure script from the
engine directory names.
2013-11-24 00:48:01 +00:00
D G Turner
00c27a28f9 BUILD: Split engines/plugins_table header down to a file per engine.
This is the third and final commit enabling fully pluggable engines.

Now providing an engine folder contains a configure.engine, engine.mk
and engine-plugin.h file, it will be picked up automatically by the
configure script.
2013-11-24 00:48:01 +00:00
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
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
18b21c52c3 TOLTECS: Add an alternate English version (bug #3614933) 2013-09-02 13:58:46 +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
Johannes Schickel
863ead081d TOLTECS: Take advantage of Surface::getPixels. 2013-08-03 04:02:53 +02:00
Johannes Schickel
76aa360112 TOLTECS: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:34 +02:00
Filippos Karapetis
247472624a TOLTECS: Fix operator order (pre-decrement instead of post-decrement)
A typo in commit 98fa064. Thanks to LordHoto for pointing that out
2013-05-14 02:11:59 +03:00
Filippos Karapetis
98fa064edf TOLTECS: Fix bug #3613032 - "TOLTECS: Crash during peace pipe coughing scene"
Check for the end of the movie resource before buffering more audio chunks.
This avoids reading past the end of the movie resource. Also, clean up some
movie related checks
2013-05-14 01:45:33 +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
14f1529976 TOLTECS: Ignore invalid script opcodes (script bugs) - bug #3604025
The original ignores invalid opcodes as well, according to johndoe
2013-04-26 18:21:23 +03:00
Filippos Karapetis
dfea40cc11 TOLTECS: Remove dead code
The clearSprites() method is a leftover from the older sprite drawing code
2013-04-26 18:21:23 +03:00
Torbjörn Andersson
4b0d0ecdda TOLTECS: Work around undefined subtitle behaviour at script loading
It may be because of an underlying bug, but there is at least one
case where a script is unloaded and replaced by another script while
that script slot still has an active subtitle. This causes it to
print random garbage for me, and may be causing crashes for others.

I've discussed this patch with johndoe, and he was ok with it, so
let's see how it works out.
2013-03-15 18:48:44 +01:00
Johannes Schickel
b4d0a8ba66 JANITORIAL: Enforce "} // End of namespace" with a single space after }. 2013-01-26 19:38:02 +01:00
Filippos Karapetis
93763acd32 TOLTECS: Don't change the archive position when loading a resource (bug #3601567) 2013-01-22 04:23:11 +02:00
Filippos Karapetis
63660cd019 TOLTECS: Whitespace fixes and explanation of some magic values 2013-01-22 04:21:00 +02:00
Filippos Karapetis
bbec4acff5 TOLTECS: Fix bug #3600166 - "TOLTECS: Parrot speech cuts off Fenimore's in Cemetery" 2013-01-13 16:29:25 +02:00
Filippos Karapetis
981bc20337 TOLTECS: Replace a magic value with its appropriate enum 2013-01-13 16:11:04 +02:00
Filippos Karapetis
e45950b966 TOLTECS: Whitespace fixes 2013-01-13 15:51:52 +02:00
Filippos Karapetis
b7bfff1bfa TOLTECS: Fix bug #3599370 - "TOLTECS: Text on intro video not shown as per original" 2013-01-13 15:39:00 +02:00
Filippos Karapetis
1302f62b9f TOLTECS: Whitespace fixes 2013-01-13 15:23:55 +02:00
Filippos Karapetis
796867cd32 TOLTECS: Fix script bug #3599964 - "TOLTECS: Crash when entering cave" 2013-01-08 23:13:38 +02:00
Filippos Karapetis
3e025a8c55 TOLTECS: Add detection for the English demo and correct the German one 2013-01-06 20:43:23 +02:00
Torbjörn Andersson
532dd09b21 TOLTECS: When a new dialog opens, highlight active item (if any)
We do this by acting as if the mouse just moved to its current
position. I first noticed this on the original save/load dialogs.
2013-01-04 10:58:27 +01:00
Torbjörn Andersson
c9a175a877 TOLTECS: Scroll original save/load dialog to bottom on opening
This doesn't behave quite like the original - it seems the original
does not take the fake last entry into account when saving? - but I
think it's actually a bit more consistent this way.
2013-01-04 10:50:18 +01:00
Torbjörn Andersson
8afe7a2361 TOLTECS: Hide/show arrows in original save/load dialogs
The arrows are only visible when there are savegames to scroll to
in that direction.
2013-01-04 10:32:10 +01:00
Torbjörn Andersson
f93facaf45 TOLTECS: Make aborting movies more reliable
Before, the main updateInput() might swallow attempts at aborting
movies. Now all events are handled by the movie player's own
handleInput(). As a side effect, it's no longer necessary to check
if a movie is playing before removing subtitles when pressing space.
2013-01-04 02:27:56 +01:00
Torbjörn Andersson
e0b75c59ea TOLTECS: Remove unnecessary calls to quitGame()
Calling quitGame() simply creates a new quit event. There's no
need to do that when catching a quit event.
2013-01-04 02:12:21 +01:00
Torbjörn Andersson
f7e4f4b354 TOLTECS: Adjust verb drawing to look more like original
Both the "wobble" and the positions were slightly off. I didn't
want to change _verbLineY because for one thing it doesn't seem to
affect the drawing of the verbs, and for another it seems to be
stored in savegames because... squirrel!
2013-01-04 00:40:17 +01:00
Torbjörn Andersson
739549a29b TOLTECS: Small adjustments to the dialogs to better match original
There are still lots of things that don't look or act quite like
the original, but it's getting late here.
2013-01-04 00:01:10 +01:00
Torbjörn Andersson
ad36fb3366 TOLTECS: Don't allow dialog skipping while movies are playing 2013-01-02 22:18:09 +01:00