Commit Graph

77 Commits

Author SHA1 Message Date
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
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
67869d2c10 - Moved disk code for Nippon Safes in new file disk_ns.cpp, adding _ns suffix to classes and member functions.
- Added function stubs into new file disk_br.cpp for Big Red Adventure [IT STILL CRASHES!].
- Modified engine to create the proper Disk manager object.

svn-id: r28246
2007-07-27 19:02:19 +00:00
Nicola Mettifogo
2b219db314 Merged archive.cpp into disk.cpp.
svn-id: r28221
2007-07-26 20:22:51 +00:00
Nicola Mettifogo
236634662c Made screen size parameters properties of engine instead of compile-time constants.
svn-id: r28219
2007-07-26 18:30:27 +00:00
Nicola Mettifogo
214cbc40f5 Moved SaveLoadChooser class to saveload.cpp and adjusted dependencies.
svn-id: r27954
2007-07-07 19:42:06 +00:00
Nicola Mettifogo
65ac39fb8b Oops. Crappy dump code doesn't belong to global repository.
svn-id: r27950
2007-07-07 15:12:01 +00:00
Nicola Mettifogo
d87e8c81aa DLTA tags in multi-frame images are now supported.
svn-id: r27949
2007-07-07 14:56:30 +00:00
Travis Howell
bb37b9b839 Skip DLTA frames for now, when loading character face data in the Amiga multi-lingual version. To prevent reading past the end of data.
svn-id: r27918
2007-07-05 07:39:53 +00:00
Nicola Mettifogo
caa69a55fc Made changeCharacter restore the previous open Archive after completing its duties: this fixes known crash when mini-Dino activates robot, and possibly many unknown others.
svn-id: r27684
2007-06-23 21:53:13 +00:00
Nicola Mettifogo
d3ced30c81 Fixed regression: crash when loading objects on Amiga.
svn-id: r27460
2007-06-16 11:22:23 +00:00
Travis Howell
987aaa6d81 Reduce code duplication.
svn-id: r27459
2007-06-16 11:13:36 +00:00
Travis Howell
ab1b2e04a9 Remove code to skip frames in the Amiga demo again, as it fixes Honest Chan not appearing correctly.
svn-id: r27442
2007-06-16 06:36:16 +00:00
Travis Howell
4362692684 Add GF_LANG_MULT game flag, for detecting differences between the two Amiga versions.
svn-id: r27441
2007-06-16 02:43:31 +00:00
Nicola Mettifogo
85ce1d85ca All known versions of Nippon Safes are now enabled with all features except for half-brite effects. Please keep an eye out for regression.
svn-id: r27437
2007-06-15 21:40:02 +00:00
Travis Howell
021a66a0ab More adjustments for Amiga version.
svn-id: r27417
2007-06-15 14:39:57 +00:00
Travis Howell
6c3a81cd4e More adjustments for Amiga version.
svn-id: r27416
2007-06-15 14:28:14 +00:00
Travis Howell
388b8689a6 Add basic support for Amiga version.
svn-id: r27411
2007-06-15 04:05:57 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Nicola Mettifogo
b7b3030383 Fixed bug. snprintf counts the termination character on Linux, but not on Windows, so had to resort to another solution.
svn-id: r26893
2007-05-20 17:17:48 +00:00
Nicola Mettifogo
ae63466446 cleanup
svn-id: r26834
2007-05-13 14:38:05 +00:00
Nicola Mettifogo
d0635b8677 New debug strings and levels.
svn-id: r26812
2007-05-12 19:29:20 +00:00
Nicola Mettifogo
008042ac25 Implemented a IFF (Interchange File Format) parser and added subclasses to parse graphics (ILBM, PBM) and audio (8SVX), thus replacing old decoding routines. SAGA and Parallaction have been adjusted to work with the new code.
svn-id: r26719
2007-05-01 15:39:40 +00:00
Nicola Mettifogo
81d6873608 Refactored music code for dos version and added music to Amiga versions.
svn-id: r26619
2007-04-27 20:06:42 +00:00
Nicola Mettifogo
fd08c7278d Improvements on background masking in Amiga versions (not yet perfect, though),
svn-id: r26584
2007-04-23 21:16:13 +00:00
Nicola Mettifogo
ea7157c5b8 Simplified loading of background resources for Amiga.
svn-id: r26578
2007-04-23 17:07:47 +00:00
Nicola Mettifogo
987638a713 Now handling fonts with brand-new Font hierarchy. Amiga font have been implemented for dialogues/descriptions, but not for labels yet.
svn-id: r26530
2007-04-16 20:16:18 +00:00
Nicola Mettifogo
c43960b958 - Fonts are now preloaded at start.
- Replaced font string names with enums.
- Some slight simplification to Disk.

svn-id: r26518
2007-04-15 20:57:56 +00:00
Nicola Mettifogo
88b8f94435 Implemented palette animation to Amiga version of Nippon Safes.
svn-id: r26453
2007-04-11 20:20:22 +00:00
Nicola Mettifogo
59b1538685 Reduced dependency between project files, and prepared defs.h for deletion as soon as List<>'s usage is implemented.
svn-id: r26400
2007-04-07 10:02:59 +00:00
Nicola Mettifogo
e3c25e6d20 - added a new archive member variable to Disk, to decouple resource archives from location archives
- made Script use a stream as input with overall simplification of Disk routines

svn-id: r26379
2007-04-03 22:03:21 +00:00
Nicola Mettifogo
4c151928fa - fixed RLEStream
- simplified unpacking of background for dos version
- other minor changes

svn-id: r26378
2007-04-03 21:11:43 +00:00
Nicola Mettifogo
0dadd3cd2c Reduced code duplication in AmigaDisk by means of a new wrapper class for Archive.
svn-id: r26377
2007-04-03 19:51:23 +00:00
Nicola Mettifogo
8b63337ce0 miscellaneous improvements for amiga
svn-id: r26374
2007-04-02 21:00:11 +00:00
Nicola Mettifogo
94159481cc - slightly improved mask for amiga (not perfect yet)
- fixed loading of Talks for amiga
- fixed handling of multiple frames

svn-id: r26373
2007-04-02 20:53:25 +00:00
Nicola Mettifogo
4273a4d49b Renamed classes for consistency.
svn-id: r26362
2007-04-01 19:58:53 +00:00
Nicola Mettifogo
f5828e7fdf - Added a new class RLEDecoder to avoid code duplication in Disk routines.
- Temporarily disabled mask loading in Amiga version.

svn-id: r26361
2007-04-01 19:22:15 +00:00
Nicola Mettifogo
a97ab92dd9 Fixed loading of graphics. Now things really look what they are, except the character which still looks a bit jagged.
svn-id: r26352
2007-04-01 15:41:34 +00:00
Nicola Mettifogo
91eaea3e58 Added code for resource loading and fixed the bug having Amiga demo crashing. It is now limitedly playable, although graphics is still heavily messed up.
svn-id: r26349
2007-04-01 14:35:33 +00:00
Nicola Mettifogo
b7e499b64a Implemented Disk routines for Amiga demo. Font are simulated with boxes, and frames aren't decoded properly yet. The engine will now show the first game screen, but crash as soon as the user clicks her mouse.
svn-id: r26341
2007-04-01 12:45:42 +00:00
Nicola Mettifogo
31eb34c98f - changed Cnv to use a single large buffer for frames instead of small chunks of memory, to simplify loading by Disk.
- added a new constructor with parameters to Cnv

svn-id: r26318
2007-03-29 19:03:51 +00:00
Nicola Mettifogo
3903309af3 Overhaul of palette management to bring it back to its original form. Gfx palette code has been updated, and _c_endComment (callable from scripts) has been implemented. As a by-product, palette cycling now finally works!
svn-id: r26314
2007-03-28 20:12:00 +00:00
Nicola Mettifogo
77657498b2 added code to load amiga background slides
svn-id: r26311
2007-03-27 22:02:07 +00:00
Nicola Mettifogo
7b9c74acae Added new class Table, and updated Disk accordingly. Tables can be populated after their creation or wrapped around existing arrays. Thus, the old functions (initTable, freeTable and searchTable) have been removed.
svn-id: r26295
2007-03-24 21:18:08 +00:00
Nicola Mettifogo
afe981d340 started infrastructure for amiga demo:
- added Disk skeleton
- adapted Archive to handle different structure for archives
- moved Disk creation from engine constructor into init() [still sub-optimal]

svn-id: r26293
2007-03-24 17:14:04 +00:00
Nicola Mettifogo
0bc056aee3 Made loadStatic return a new StaticCnv instead of accepting a parameter. All disk functions now accept only a resource name as their parameter.
svn-id: r26232
2007-03-18 21:15:39 +00:00
Nicola Mettifogo
992f535724 Made loadFrames return a new Cnv instead of accepting a parameter.
svn-id: r26231
2007-03-18 21:08:28 +00:00
Nicola Mettifogo
791ad09510 Made loadFont return a new Cnv instead of accepting a parameter.
svn-id: r26203
2007-03-18 10:38:31 +00:00
Nicola Mettifogo
13385a5f2d Made loadObjects return a new Cnv instead of accepting a parameter.
svn-id: r26202
2007-03-18 10:34:41 +00:00
Nicola Mettifogo
8f74bc15ae - made loadPointer return a new StaticCnv instead of accepting a parameter.
- adjusted Gfx code handling mouse pointers.

svn-id: r26201
2007-03-18 10:30:51 +00:00