Commit Graph
181 Commits
Author SHA1 Message Date
Sven Hesse c66afb213b GOB: Fix analyser warnings regarding sprintf() parameter signness 2011-11-03 17:01:54 +01:00
Thierry Crozat 06bbb57ad7 I18N: Make many more GUI MessageDialog strings translatable 2011-06-13 22:19:18 +01:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
dhewg d83a83ef50 JANITORIAL: Remove/comment unused vars
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02:00
Max Horn 42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Sven Hesse b6d2e521c5 GOB: Add oPlaytoons_loadMultObject
svn-id: r55769
2011-02-04 15:55:20 +00:00
Sven Hesse 80bfecb625 GOB: Fix a regression that broke Lost in Time
svn-id: r55760
2011-02-03 20:51:59 +00:00
Sven Hesse 65bc46d3ab GOB: Add Script::evalInt() and Script::evalString()
svn-id: r55634
2011-01-29 22:47:53 +00:00
Sven Hesse 05d5d64d6c GOB: Rename "skipPlay" to "function" in playTot
svn-id: r55628
2011-01-29 22:44:36 +00:00
Sven Hesse 14678f059b GOB: Move OpcodeFunc's return flag into its parameter
To make the meaning of the flag more clear and make the func
opcodes more similar to draw and gob opcodes.

svn-id: r55627
2011-01-29 22:44:06 +00:00
Sven Hesse 03adf7fdf6 GOB: Only draw text when coordinates are within the surface
svn-id: r55575
2011-01-27 21:12:27 +00:00
Sven Hesse e237ff3628 GOB: Some Addy gameflow stubs
svn-id: r55562
2011-01-27 13:26:34 +00:00
Sven Hesse 330acb2168 GOB: Add a sanity check assert()
svn-id: r55535
2011-01-25 14:20:47 +00:00
Sven Hesse 75eb1f7f10 GOB: Also ignore writing to kSaveModeIgnore files
svn-id: r55351
2011-01-20 12:39:54 +00:00
Sven Hesse d4357c5c3f GOB: Give Inca2 its own Inter class
svn-id: r55296
2011-01-18 11:52:24 +00:00
Sven Hesse 61b90c43d8 GOB: Fix a stupid typo in o2_readData()
svn-id: r55290
2011-01-18 08:14:23 +00:00
Sven Hesse db13af5337 GOB: Make the variable stack endianness-independent
Since Urban Runner casts int16s to uint32 before pushing them onto the
stack and after popping assumes it's little endian, we have explicitely
preserve the variable space endianness while pushing/popping.

svn-id: r55277
2011-01-17 13:37:14 +00:00
Sven Hesse 6c6d85908f GOB: Fix o2_pushVars()
Fixes Urban Runner loading.
This being broken has the potential of messing up
/everything/ in unpredictable ways, so saves of games using
this opcode may be borked. Thankfully, I *think* it's just
Urban Runner, which isn't working/supported yet anyway.

svn-id: r55276
2011-01-17 12:09:06 +00:00
Sven Hesse 16a3cc8a84 GOB: Clean up class DataIO
Removing the need for class DataStream and that handle mess.

svn-id: r53984
2010-10-31 20:07:14 +00:00
Sven Hesse 0f3ed50cfc GOB: Make some more map properties protected
svn-id: r53952
2010-10-30 17:28:27 +00:00
Sven Hesse 835455798f GOB: Remove the now useless helper.h
svn-id: r53491
2010-10-15 13:55:18 +00:00
Sven Hesse 5c48c3fd2b GOB: Remove strncpy0()
Replacing it (and some strncpy + manual terminating) with
Common::strlcpy()

svn-id: r53490
2010-10-15 13:54:23 +00:00
Sven Hesse bab55f3a1d GOB: Adapt the remaining bits to the new VideoPlayer interface
svn-id: r51895
2010-08-08 00:55:27 +00:00
Sven Hesse 7fe406a5dd GOB: Fix video continuing
svn-id: r51878
2010-08-08 00:47:54 +00:00
Sven Hesse 31ecaa5275 GOB: Make o2_playImd use the new VideoPlayer interface
svn-id: r51864
2010-08-08 00:41:22 +00:00
Sven Hesse 4415953393 GOB: Add constants for different surfaces/sprites
Add
static const int kFrontSurface   = 20;
static const int kBackSurface    = 21;
static const int kAnimSurface    = 22;
static const int kCursorSurface  = 23;
static const int kCaptureSurface = 30;
to class Draw and substitute the raw numbers in other files with
those aliases, for readability.

svn-id: r51852
2010-08-08 00:35:18 +00:00
Johannes Schickel cbbb78d9f2 Enforce conversion formatting on pointer casts in the DEV code.
svn-id: r49068
2010-05-17 22:46:53 +00:00
Sven Hesse 081fa85b14 Playtoons uses a variable space that exceeds 32767 bytes. Changing a few variables to unsigned makes the construction mode not crash anymore (though it now hangs in a loop)
svn-id: r43713
2009-08-24 22:37:09 +00:00
Arnaud Boutonné f9560dc35a Suppress no longer needed Playtoons workaround
svn-id: r43346
2009-08-13 10:00:35 +00:00
Arnaud Boutonné 294f416c4d gob - Add a workaround for files (at least in Playtoons) that are tested on CD only, with the '@' symbol
svn-id: r43227
2009-08-10 20:57:26 +00:00
Sven Hesse 256a27350a Changed the scroll-handling to be more like the original. This fixes bug #2832362 ("GOB3: Scrolling locked after cutscene")
svn-id: r43147
2009-08-08 21:43:07 +00:00
Sven Hesse b9263e172f Show a message if saving or loading a game fails.
svn-id: r43001
2009-08-02 13:54:06 +00:00
Sven Hesse 049a636abc Adding a workaround for the guard house card game "game over" screen in Woodruff
svn-id: r42588
2009-07-18 13:05:36 +00:00
Sven Hesse edfaf7bc3c Added an enum for the hotspot states
svn-id: r42155
2009-07-05 21:40:51 +00:00
Sven Hesse 50108e9135 Renaming the last occurences of "Collision" to "Hotspot"
svn-id: r42153
2009-07-05 21:39:55 +00:00
Sven Hesse aeb020602a More state-related encapsulation
svn-id: r42144
2009-07-05 19:56:40 +00:00
Sven Hesse 18550c1314 Moving the "Collision" stuff to Hotspots in hotspots.cpp/.h
svn-id: r42123
2009-07-05 11:27:54 +00:00
Sven Hesse d03dc08b64 Wrapping resources (out of TOT, EXT, IM? and EX? files) loading into its own class
svn-id: r41839
2009-06-24 21:49:37 +00:00
Sven Hesse ec5b2d6c9a Added a method to query the number of variables needed by a Script
svn-id: r41791
2009-06-23 01:20:05 +00:00
Sven Hesse c3aafec1fb Renaming parse.h and parse.cpp to expression.h and expression.cpp
svn-id: r41773
2009-06-22 16:30:35 +00:00
Sven Hesse 7d005f62c3 Putting evalBoolResult() and evalExpr() into Script
svn-id: r41760
2009-06-22 10:29:32 +00:00
Sven Hesse 962fc19b57 Encapsulating script file access
svn-id: r41753
2009-06-22 10:13:37 +00:00
Sven Hesse dd9e62e31e Adding DataIO::existData()
svn-id: r41752
2009-06-22 10:12:33 +00:00
Sven Hesse 1dafcabb43 Encapsulated access to _resultStr
svn-id: r41751
2009-06-22 10:11:53 +00:00
Sven Hesse f6717373b5 Encapsulated access to Parse::_resultInt
svn-id: r41750
2009-06-22 10:11:25 +00:00
Sven Hesse 0ae767ae8c Fixing The Last Dynasty again after the opcode dispatcher changes
svn-id: r41664
2009-06-19 09:43:01 +00:00
Sven Hesse 6c47f9f4f8 Changed opcodeGob to be functor-based
svn-id: r41603
2009-06-17 04:16:51 +00:00
Sven Hesse 8615c57791 Changed opcodeFunc to be functor-based
svn-id: r41602
2009-06-17 04:16:21 +00:00
Sven Hesse 25c92dfdef Changed opcodeDraw to be functor-based
svn-id: r41601
2009-06-17 04:15:45 +00:00
Sven Hesse 434be5c65a Renamed _inter_resStr to _resultStr
svn-id: r41575
2009-06-15 23:11:29 +00:00