Commit Graph

61 Commits

Author SHA1 Message Date
Christoph Mallon
e35b4f20c1 GRAPHICS: Simplify the interface of Graphics::loadThumbnail().
Now it returns the Surface, so the caller does not need to create one and pass it.
2011-08-07 15:19:09 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +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
Max Horn
a905682cf8 LURE: Convert printf to debug/warning
Exception: The "decompiler" code still uses fopen/fprintf etc.
but it is disabled by default, hence I am ignoring it for now.

svn-id: r54108
2010-11-07 01:03:58 +00:00
Eugene Sandulenko
15b881386a CRUISE: Eliminate global constructors
svn-id: r51936
2010-08-09 10:30:40 +00:00
Paul Gilbert
a57445e847 Put in a warning in case there is ever too long a background resource name when saving a game
svn-id: r48095
2010-02-20 10:37:08 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Torbjörn Andersson
72eb9ec9ea Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
before freeing it, which isn't necessary.

svn-id: r46941
2010-01-03 19:37:43 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Paul Gilbert
a4fbc73ee6 Fixed memory leaks in savegame restoring
svn-id: r44863
2009-10-10 05:08:56 +00:00
Paul Gilbert
857a35f748 Fixed all memory leaks as far as the initial title screen
svn-id: r44814
2009-10-09 10:32:33 +00:00
Paul Gilbert
8694b48ae3 Set up a basic tracing system for all memory allocations to help track down memory leaks
svn-id: r44808
2009-10-09 08:15:30 +00:00
Paul Gilbert
3190bf68f2 Bugfix for loading savegames where the active resource file database isn't completely filled
svn-id: r42047
2009-07-03 06:19:20 +00:00
Paul Gilbert
4f622ab295 Added proper saving of music state to savegames so music resumes when a savegame is loaded.
svn-id: r41702
2009-06-20 08:15:01 +00:00
Paul Gilbert
2f3e5f11cb Beginnings of music support for Cruise, based on the cine engine sound code (note that the music played isn't yet correct, though)
svn-id: r41506
2009-06-14 03:39:30 +00:00
Paul Gilbert
f2c1b18242 Added variable to savegame format so that savegames can be correctly loaded from the ScummVM launcher
svn-id: r41423
2009-06-10 12:15:50 +00:00
Paul Gilbert
5bb449b2bf Removed the remaining two FIXME's - my analysis of the data indicates no issues with structure packing, and all multi-byte data accesses are wrapped using loadShort/saveShort, which is endian safe
svn-id: r41096
2009-06-01 08:46:39 +00:00
Paul Gilbert
4269c3a4ea Converted the saving of perso structure data to proper endian-safe serialisation
svn-id: r41093
2009-06-01 03:27:54 +00:00
Paul Gilbert
f0e69a7d0b Replaced the original implementation of walk box handling with a cleaner, structure array based one
svn-id: r40954
2009-05-28 08:49:56 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Max Horn
65b5d31814 COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
2009-05-19 11:42:14 +00:00
Max Horn
42cd218400 Improved Common::Serializer in several ways:
* Added support versioned serialization
* Added a convenience API for handling 'magic IDs' transparently
* Exposed the err()/clearErr() methods of the underlying streams
* Added a basic unit test for versioned loading (more should be added, in particular for saving)
* Removed the syncString(char *, uint16) alias for syncBytes(byte *buf, uint32 size)

svn-id: r40723
2009-05-19 11:23:13 +00:00
Paul Gilbert
dcca3197fc Properly named the script structure offset field, and fixed an endian bug
svn-id: r40634
2009-05-17 06:59:19 +00:00
Paul Gilbert
358be385b5 Replaced value with proper constant, and named a previously un-named structure field
svn-id: r40616
2009-05-16 04:03:37 +00:00
Paul Gilbert
adaa0472c5 Bugfix to saving the width of a cached background area - the previous code was, for some reason, saving the width divided by 2.. this was causing corruptions during reload for cached areas with an odd horizontal width
svn-id: r40595
2009-05-15 07:03:56 +00:00
Paul Gilbert
464b8cc7f3 Corrected saving/loading of cached background areas
svn-id: r40594
2009-05-15 06:46:56 +00:00
Paul Gilbert
15252ad83c Added support for the global menu save/loading, and changed the savegame format to store the savegame name and thumbnail
svn-id: r39979
2009-04-18 10:16:08 +00:00
Paul Gilbert
07fb7735b5 Replaced all occurrences of the constant '257' with the existing constant 'NUM_FILE_ENTRIES'
svn-id: r39824
2009-04-04 01:21:25 +00:00
Paul Gilbert
d42d6122d9 Laid the basics for music handling
svn-id: r39786
2009-04-01 10:43:24 +00:00
Max Horn
48d73ff6bf CRUISE: Fixed bug when loading backgroundIncrustStruct::saveWidth (don't divide by 2, rather *multiply* by 2); also some cleanup
svn-id: r39657
2009-03-24 11:30:37 +00:00
Paul Gilbert
57b0038e5e Converted the Cruise engine to use the new Common::Serializer class
svn-id: r39443
2009-03-16 09:17:49 +00:00
Paul Gilbert
41eaf2c575 Removed deprecated method
svn-id: r36258
2009-02-11 09:02:30 +00:00
Paul Gilbert
7238358e6e Changed the save/load process to use a common serialiser
svn-id: r36253
2009-02-09 11:30:18 +00:00
Max Horn
ac59693be2 A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
2009-01-29 05:26:12 +00:00
Max Horn
4c5efaecf4 Code formatting fixes, automatically performed by astyle
svn-id: r35870
2009-01-16 02:43:41 +00:00
Max Horn
42c46aa5a1 Mark cruise save/load code as not endian safe
svn-id: r35869
2009-01-16 01:48:55 +00:00
Eugene Sandulenko
297d4228d3 Patch #2054467: CRUISE: 64bits fixes
svn-id: r34622
2008-09-21 10:23:22 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Vincent Hamm
f953ed4dde Early pathfinding
svn-id: r30012
2007-12-27 12:05:43 +00:00
Vincent Hamm
be737e074d Fix background save/restore
svn-id: r29979
2007-12-24 16:57:14 +00:00
Vincent Hamm
2d9d0f1b1f -Fade in/fade out
-Implement background mode 5

svn-id: r29968
2007-12-24 01:05:36 +00:00
Max Horn
1b285398b3 Fix compiler warnings
svn-id: r29922
2007-12-20 15:00:09 +00:00
Vincent Hamm
564fc06cf7 Multiple fix/cleanup
One bug remains before the game is completable without hack

svn-id: r29920
2007-12-20 14:30:51 +00:00
Vincent Hamm
aa62d6355a Fix loading savegame from original interpreter
svn-id: r29901
2007-12-18 20:12:42 +00:00
Vincent Hamm
1bae92f2e1 Implement dialogues
Detect french 256 colors version

svn-id: r29473
2007-11-11 01:04:40 +00:00
Vincent Hamm
31d04d98dc Fix relocation of objects relations
svn-id: r29472
2007-11-10 23:20:47 +00:00
Vincent Hamm
34a696662a Fix boggus object state
svn-id: r29469
2007-11-10 19:47:07 +00:00
Vincent Hamm
faf78d582a -Cleanup strings
-Fix load saves from original interpreter
-Add all background merge functions

svn-id: r29467
2007-11-10 17:15:48 +00:00
Vincent Hamm
783a0bf67d Cleanup load savegame from original interpreter
svn-id: r29453
2007-11-08 22:59:29 +00:00
Vincent Hamm
e2260d8afd Implement polygon and sprite masking
svn-id: r29422
2007-11-05 20:24:20 +00:00