Commit Graph

67 Commits

Author SHA1 Message Date
D G Turner
8356656575 GOB: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
2011-06-02 02:20:51 +01:00
Matthew Hoops
eea482fa43 ALL: behaviour -> behavior 2011-05-25 10:50:46 -04:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Sven Hesse
8e03a200ef GOB: Fix a stupid typo in SlotFileIndexed::buildIndex()
This should fix bug #3295893.

The intention of this piece of code was to pad the first save slot
name with spaces until it's as long as the longest save slot name,
because the scripts use it to gauge the width of the save list.
Unfortunately, I messed up there, overwriting variable space directly
after the save names. In Urban Runner's case, this would be the list
of inventory items.
2011-05-05 20:50:53 +02:00
Sven Hesse
30f7cdb49a GOB: Plug a leak
Thanks to digitall for finding that one
2011-05-04 01:26:10 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Sven Hesse
804f0f3e47 GOB: Shut up VS2010 code analysis warning 2011-04-20 23:10:00 +02:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Ori Avtalion
765540a5fd GOB: Avoid hiding overloaded virtual methods 2011-02-26 20:25:44 +02:00
Sven Hesse
812680d187 GOB: Rename Draw::kSpritesCount to Draw::kSpriteCount
svn-id: r55729
2011-02-02 16:49:20 +00:00
Sven Hesse
c498d70dd2 GOB: Change SPRITES_COUNT into a const
svn-id: r55645
2011-01-30 00:02:42 +00:00
Sven Hesse
437a3eb63b GOB: Add 2 Addy 4 base fake save handlers
svn-id: r55553
2011-01-26 19:05:36 +00:00
Sven Hesse
1d59d3ecb0 GOB: Another fake Addy 4 save handler
svn-id: r55552
2011-01-26 19:05:04 +00:00
Sven Hesse
7a41cd7fa9 GOB: Add stub save handlers for Addy 4 (Grundschule)
svn-id: r55549
2011-01-26 19:04:03 +00:00
Sven Hesse
d1b53b1b81 GOB Add save stubs for Addy Junior
svn-id: r55529
2011-01-25 12:14:31 +00:00
Sven Hesse
0432ca6d0f GOB: Add a FakeFileHandler
For temporarily storing save "files"

svn-id: r55528
2011-01-25 12:14:05 +00:00
Sven Hesse
d706ab3ee8 GOB: Urban: Write intro.0xx to file too
This fixes retrying after dying in the Secret Room.

svn-id: r55496
2011-01-24 10:31:19 +00:00
Sven Hesse
40a4b09246 GOB: Fix the save list width
The length of the slot 0 string determines the list's width

svn-id: r55426
2011-01-22 14:23:03 +00:00
Sven Hesse
e7006f2cf1 GOB: Urban: Save an empty sprite if necessary
svn-id: r55406
2011-01-22 04:14:33 +00:00
Sven Hesse
af7c96cff1 GOB: Urban: Fix saving/loading in the Secret Room screen
For some reason, the original engine saves the console sprite to
disk instead of reconstructing it after loading the actual save...

Invalidates the Urban Runner saves again. Should be the last time,
though.

svn-id: r55384
2011-01-21 19:15:43 +00:00
Sven Hesse
9e338a170f GOB: Add support for saving true color sprites
Not exactly the "nice", since up-depthing the sprite data to 24bit
happens after it has been adapted to the current system's color
format, so we're going to gradually lose precision when the save
gets passed around different systems. Still, this is the least
headachy solution, I guess...

svn-id: r55383
2011-01-21 19:15:10 +00:00
Sven Hesse
100b25a29e GOB: Remove the now useless SaveConverter_v6
Since I just invalided the old Urban Runner saves anyway...

svn-id: r55376
2011-01-21 13:29:51 +00:00
Sven Hesse
e95254ffa5 GOB: Urban: Fix loading/saving in the Cemetary/Lab screens
svn-id: r55375
2011-01-21 13:29:23 +00:00
Sven Hesse
8b3f2955a4 GOB: Make the Cemetary/Lab screen work correctly
Saving there still won't work though

svn-id: r55374
2011-01-21 13:28:35 +00:00
Sven Hesse
862596bbd4 GOB: Ignore a few more dummy files
svn-id: r55353
2011-01-20 12:40:42 +00:00
Sven Hesse
adbeb20f3b GOB: Add preliminary Inca 2 save support
svn-id: r55323
2011-01-19 09:02:39 +00:00
Sven Hesse
12ff4f51f1 GOB: Add save stub and temp sprite for Inca2
svn-id: r55321
2011-01-19 09:01:38 +00:00
Sven Hesse
b38b5d2484 GOB: Give Inca2 its own SaveLoad class
Add an quick hack to fudge reading of the "voice.inf" file,
so that the voice match the selected text language.

svn-id: r55298
2011-01-18 11:53:21 +00:00
Sven Hesse
b4e12e6a89 GOB: Fix the indenting :P
svn-id: r55297
2011-01-18 11:52:44 +00:00
Sven Hesse
efe0dea82c GOB: Implement Urban Runner autosave
Makes the "Try again" after a death work

svn-id: r55293
2011-01-18 09:27:32 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
3534cff8ef ALL: Fix indention (whitespaces -> tabs)
svn-id: r53738
2010-10-23 15:46:50 +00:00
Sven Hesse
51fd528fe5 GOB: Change all drawing to use class Surface
svn-id: r52947
2010-09-30 13:02:16 +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
9cad13957d Implementing saving/loading for Fascination. Tested in the DOS floppy versions and the Amiga version
svn-id: r47845
2010-02-03 09:32:16 +00:00
Sven Hesse
6f66286c59 Renaming saveload_Fascination.cpp to saveload_fascin.cpp, to fit the naming scheme
svn-id: r47805
2010-02-01 23:34:30 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Torbjörn Andersson
428f8d6955 Fixed some cppcheck warnings.
svn-id: r47393
2010-01-19 20:41:51 +00:00
Arnaud Boutonné
3ccdaa72c3 gob - Preliminar saveload for Fascination
svn-id: r45937
2009-11-16 17:15:33 +00:00
Max Horn
3399c3aeb6 Change doxygen inline comments from "//!" to "///" as proposed on -devel
svn-id: r44802
2009-10-08 21:28:57 +00:00
Arnaud Boutonné
42848e1276 Playtoons - Save temp sprites. This fixes some of the Bambou graphical issues, and the Playtoons menu (history selection)
svn-id: r43782
2009-08-28 19:28:54 +00:00
Sven Hesse
c70a874506 Properly fixing the Lost in Time temp sprite issue
svn-id: r43654
2009-08-22 15:46:43 +00:00
Arnaud Boutonné
f9a3ca7db1 Add 31 title files to ignore (they are never present !)
svn-id: r43601
2009-08-21 16:50:30 +00:00
Sven Hesse
79c2dc7980 Fixing some signed/unsigned comparison warnings
svn-id: r43570
2009-08-20 20:59:22 +00:00
Arnaud Boutonné
e350e0b020 Replace magic numbers by constants : kPropsSize and kIndexSize
svn-id: r43562
2009-08-20 13:36:18 +00:00
Arnaud Boutonné
50d515c3df modify props size to avoid later error (Size is still temporary) and prepare the magic number => constant modification
svn-id: r43560
2009-08-20 12:30:37 +00:00
Arnaud Boutonné
90336c88ac Add back parenthesis (I wasn't aware of this convention, sorry) in saveload, and mimic this code in oPlaytoons_openItk
svn-id: r43464
2009-08-17 10:05:02 +00:00
Arnaud Boutonné
e214755107 Suppress useless parentheses
svn-id: r43462
2009-08-17 09:54:49 +00:00
Sven Hesse
5e90ce3536 Setting gob3 save/load mode of the temporary sprite "intro.$$$" to ignore and remove the TempSpriteHandler.
Gob3 doesn't use it at all and Lost in Time only saves (with an invalid index) and never loads

svn-id: r43366
2009-08-14 15:22:43 +00:00
Arnaud Boutonné
6bcc9a45fd Initial save handler for Playtoons
svn-id: r43344
2009-08-13 09:56:54 +00:00