68 Commits

Author SHA1 Message Date
Nicola Mettifogo
1a525d1bb7 PARALLACTION: Avoid hiding overloaded virtual methods.
svn-id: r55820
2011-02-08 01:44:03 +00:00
David Turner
14d74d2063 PARALLACTION: Fix Un-initialized Memory Errors and Leaks in Nippon Safes Amiga Demo.
These were found using Valgrind.

svn-id: r55369
2011-01-21 03:25:01 +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
2149a2383d Reduce indirect header dependencies further
svn-id: r48936
2010-05-04 12:00:16 +00:00
Travis Howell
7e1f395e34 Fix bug #2969232 - NIPPON: Kos sprite broken (Regression). The current disk archive requires a higher priority, compared to the default disk archives.
svn-id: r48469
2010-04-02 13:49:59 +00:00
Max Horn
0cf53b025d Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
svn-id: r47180
2010-01-08 22:07:35 +00:00
Max Horn
2bbf708dea Introduced new type Common::DisposeAfterUse::Flag
svn-id: r45233
2009-10-18 19:41:59 +00:00
Filippos Karapetis
b4f1960318 Reverted parts of revisions #44298, #44299 and #44300, to prevent warnings and issues in compilers which don't support NORETURN
svn-id: r44314
2009-09-24 17:52:53 +00:00
Filippos Karapetis
6b79910bcb Fixed some more warnings about unreachable code
svn-id: r44300
2009-09-24 10:15:50 +00:00
Nicola Mettifogo
36828287ad * Moved the updated IFF code from Parallaction to common/
* Updated Parallaction and SAGA to use the new decoder infrastructure.

svn-id: r41465
2009-06-12 08:51:05 +00:00
Nicola Mettifogo
657e37985e Cleanup of sound code.
svn-id: r41461
2009-06-12 07:55:44 +00:00
Nicola Mettifogo
5fccc0f98d * Final version of the IFF parsing code.
* Refactored ILBMDecoder usage from disk code.

svn-id: r41458
2009-06-12 05:03:18 +00:00
Nicola Mettifogo
3607c63758 Refactoring.
svn-id: r40210
2009-04-29 16:59:10 +00:00
Nicola Mettifogo
19bd929a5d * Disk code cleanup.
* Added ability to load in-game menu graphics.

svn-id: r40175
2009-04-28 12:23:52 +00:00
Nicola Mettifogo
01812f0830 Fixed several free/delete mismatches.
svn-id: r39736
2009-03-29 12:11:10 +00:00
Nicola Mettifogo
8cebcaf017 Pushed down dependencies from parser.h
svn-id: r39636
2009-03-23 17:42:08 +00:00
Nicola Mettifogo
631e0aaed5 Changed Disk code to provide SeekableReadStream's to sound routines as well.
svn-id: r39608
2009-03-22 15:25:55 +00:00
Nicola Mettifogo
c3bac3d851 Fix build.
svn-id: r39586
2009-03-21 15:13:02 +00:00
Nicola Mettifogo
14e2793449 Changed Nippon Safes to make use of the new ILBMDecoder.
svn-id: r39584
2009-03-21 15:00:44 +00:00
Nicola Mettifogo
db5150dd7c Added TODO's about replacing usage of the old ILBM decoder in Nippon Safes.
svn-id: r39573
2009-03-20 20:38:33 +00:00
Travis Howell
7f99a190cb Fix loading objects in the Amiga version of BRA.
svn-id: r39413
2009-03-15 09:29:25 +00:00
Nicola Mettifogo
bcabf5e53f Fixed regression from r39410, by reimplementing the decompression routine. The backgrounds in the DOS version of Nippon Safes are compressed by something that looks like PackBits, but is not PackBits. Hence, the change to make PackBitsReadStream behave as the standard broke it.
svn-id: r39412
2009-03-15 08:17:57 +00:00
Max Horn
f9ecd95d69 Whitespace cleanup: Convert space followed by tab to just tab
svn-id: r39203
2009-03-07 19:24:31 +00:00
Max Horn
05b4370c21 Fix for bug #2664460: Various SeekableReadStream::seek() implementations (as well as our unit tests, ouch) handled SEEK_END incorrectly (using -offset instead of offset), contrary to what the docs said and what fseek does. Hopefully I found and fixed all affected parts, but still watch out for regressions
svn-id: r39135
2009-03-05 20:37:53 +00:00
Max Horn
14c5bbbccf Renamed Archive::openFile to createReadStreamForMember
svn-id: r36021
2009-01-23 04:45:44 +00:00
Max Horn
9861afd8fd Renamed ArchiveMember::open -> createReadStream, and made it a cv member (const); same for Archive::openFile
svn-id: r36020
2009-01-23 04:36:18 +00:00
Nicola Mettifogo
f1ad8b6934 Extended PathBuffer to support BRA.
svn-id: r35766
2009-01-07 08:16:18 +00:00
Nicola Mettifogo
21fae9d029 * moved more mask management to BackgroundInfo
* simplified mask management for client code
* reduced the clutter into graphics.h by moving the implementations of BackgroundInfo, MaskBuffer and PathBuffer to graphics.cpp
* preparation for the full implementation of BRA's PathBuffer

svn-id: r35765
2009-01-07 07:35:11 +00:00
Nicola Mettifogo
dc3e9027f4 Removed references to _vm from the engine itself.
svn-id: r35358
2008-12-14 10:32:26 +00:00
Nicola Mettifogo
6ecc17010d Fixed some more leaks and mismatched allocations/deallocations.
svn-id: r35277
2008-12-07 14:33:30 +00:00
Nicola Mettifogo
e6337d11aa * completed transition to Common::Archive for Nippon Safes.
* removed lots of old Archive swap magic

svn-id: r34931
2008-11-07 15:35:18 +00:00
Nicola Mettifogo
8baedea4d4 Implemented a Common::Archive subclass to handle the content of archives in Nippon Safes. Common::File is now used only to load archives.
svn-id: r34921
2008-11-07 08:47:59 +00:00
Nicola Mettifogo
9fe3150348 Refactoring of NS disk code, preliminary to change towards Common::Archive.
svn-id: r34894
2008-11-04 13:57:04 +00:00
Nicola Mettifogo
cd3011e408 Fixed assorted leaks in NS Amiga.
svn-id: r34870
2008-11-01 12:39:01 +00:00
Nicola Mettifogo
8c5f9f9451 Cleanup of Nippon Safes disk code.
svn-id: r34860
2008-10-29 07:57:48 +00:00
Willem Jan Palenstijn
c8eeae8d4d Big patch changing semantics of ReadStream::eos():
eos() now only returns true _after_ trying to read past the end of the stream.

This has a large potential for regressions. Please test!

svn-id: r34549
2008-09-14 22:28:53 +00:00
Max Horn
655ce26b3f Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings)
svn-id: r34514
2008-09-13 16:51:46 +00:00
Nicola Mettifogo
7173aa2e3a Some unneeded references slipped in with the last commit.
svn-id: r33353
2008-07-28 05:21:11 +00:00
Nicola Mettifogo
03ffd60054 * Changed Disk code in BRA to use FilesystemNode (duplication has become truly visible!).
* Fixed Inventory items loading.

svn-id: r33352
2008-07-28 05:18:23 +00:00
Nicola Mettifogo
59e672ef40 Changed balloons to use GfxObj as well. Next step is to integrate balloons for BRA.
svn-id: r32883
2008-07-03 10:31:25 +00:00
Nicola Mettifogo
d8645297cd Changed all remaining code to use the GfxObj class to keep frames data. This allows for more uniform processing during rendering, and also fixes the display of dialogue faces for BRA.
svn-id: r32833
2008-06-29 09:30:32 +00:00
Nicola Mettifogo
4e2e46f16c Fixed leak when loading sounds for Amiga version of Nippon Safes.
svn-id: r32756
2008-06-22 14:31:45 +00:00
Max Horn
7f81de6794 cleanup
svn-id: r31289
2008-03-28 08:30:42 +00:00
Nicola Mettifogo
715e33d63d Correctly implemented little-endian masks in BRA.
svn-id: r30807
2008-02-06 13:57:44 +00:00
Nicola Mettifogo
249877fa82 Moved depth buffer and palette rotation data into BackgroundInfo.
svn-id: r30725
2008-02-02 00:41:31 +00:00
Nicola Mettifogo
ccc0f6b92d Slightly simplified Archive selection when loading resources.
svn-id: r30714
2008-01-31 10:38:15 +00:00
Torbjörn Andersson
eeb212c7e0 Indent with tabs instead of spaces.
svn-id: r30312
2008-01-06 20:42:28 +00:00
Nicola Mettifogo
919c0a2833 * added adapter from Graphics::Surface to Frames
* changed all Disk routines to return Frames* instead of Graphics::Surface*
* changed displayItemComment to use new gfx routines
* merged code for Examine zones into displayComment

svn-id: r29615
2007-11-22 21:51:33 +00:00
Nicola Mettifogo
6471eb84f2 Cleanup.
svn-id: r29556
2007-11-18 13:22:38 +00:00
Nicola Mettifogo
d7ae40b65d Refactored a lot of Character-related code and put it into the Character class.
svn-id: r29025
2007-09-22 18:45:43 +00:00