Johannes Schickel
3197cb6a23
Never unload files loat on startup like "CAVE.APK" and "LAGOON.APK".
...
svn-id: r24485
2006-10-24 00:56:10 +00:00
Johannes Schickel
0d357aab4d
Fix for (reopened) bug #1582149 ("KYRA1: Crash when meeting Malcolm").
...
svn-id: r24480
2006-10-24 00:30:48 +00:00
Johannes Schickel
f0a162e8bb
Fix for bug #1582149 ("KYRA1: Crash when meeting Malcolm").
...
svn-id: r24462
2006-10-22 20:12:27 +00:00
Johannes Schickel
a853696a5e
Some AMIGA resource loading code (of course it's still not supported).
...
svn-id: r24461
2006-10-22 20:08:23 +00:00
Johannes Schickel
b6a8e38726
- removes the kyra specific language flag system, and uses the language enum defined in Common for that now
...
- also reworks the game flag system in general
svn-id: r23920
2006-09-17 20:21:40 +00:00
Johannes Schickel
a8bc979364
- enables pseudo unloading of loaded pak files (which reduces the loading of pak files on room changes)
...
- uses Common::hashit_lower instead of scumm_stricmp for filename checking
svn-id: r23896
2006-09-16 20:51:05 +00:00
Johannes Schickel
250133baf0
Simplifies resource handling for the CD version of Kyrandia.
...
(also less file loading at startup, but more on room change)
svn-id: r23887
2006-09-16 14:36:53 +00:00
Johannes Schickel
854eac7f9b
Simplifies PAK file loading a bit.
...
svn-id: r23862
2006-09-10 13:16:34 +00:00
Max Horn
cfc52b5654
Renamed Resource::fileHandle() to Resource::getFileHandle()
...
svn-id: r23853
2006-09-09 17:14:47 +00:00
Max Horn
c7ab445755
Get rid of fsnode hack
...
svn-id: r23852
2006-09-09 17:10:09 +00:00
Max Horn
ab82dc3f9c
Fix memory leak
...
svn-id: r23848
2006-09-09 14:54:41 +00:00
Torbjörn Andersson
7bb8ca3ef6
Fixed warning.
...
svn-id: r23844
2006-09-09 13:07:15 +00:00
Neil Millstone
9f0149c553
Fixed a bug in loadPakFile(), and changed PAKFile constructor so that it doesn't load the entire file.
...
svn-id: r23843
2006-09-09 12:21:49 +00:00
Johannes Schickel
1ba14890c6
Init unitialised var.
...
svn-id: r23805
2006-08-29 15:58:57 +00:00
Oystein Eftevaag
610547acac
Makes sure FilesystemNode::name isn't used to open a file, use a regular filehandle name instead.
...
svn-id: r23800
2006-08-28 18:43:35 +00:00
Johannes Schickel
7c99b54b4e
Removing an extra '!' in a warning message.
...
svn-id: r23799
2006-08-28 14:21:23 +00:00
Oystein Eftevaag
a698cdfcfc
Catalog the PAK files by base name instead of full path name so we can properly unload them. The method may be slightly hackish, but I don't see how else to do it since we apparently support recursive PAK files so the File object can't be instantiated directly using the FilesystemNode. It's this, or add a function to File that gives us just the base name of the file.
...
svn-id: r23762
2006-08-26 18:37:49 +00:00
Johannes Schickel
eee50637b8
Little Common::String usage 'fix'.
...
svn-id: r23698
2006-08-08 21:34:19 +00:00
Johannes Schickel
01b3a0b568
Yet more kyra3 init code.
...
svn-id: r23648
2006-07-31 16:37:34 +00:00
Johannes Schickel
6cc1a57d3b
- fixes bug in fileData (introduced with last commit)
...
- show mouse cursor in Screen::setMouseCursor if it's allready shown
- a little bit more kyra3 init stuff
svn-id: r23623
2006-07-30 08:22:39 +00:00
Johannes Schickel
92649de672
- fixes copyright of kyra3.h
...
- implements a bit more init functions for kyra3
- removes hacked mouse cursor
- changes Resource::fileData to accept a null pointer for size
svn-id: r23622
2006-07-30 07:51:11 +00:00
Max Horn
4fcdbb9349
String class usage cleanup
...
svn-id: r23582
2006-07-23 15:08:48 +00:00
Johannes Schickel
eb23d7b9a0
Changing usage of FSNode::displayName to FSNode::path
...
svn-id: r23549
2006-07-22 00:44:56 +00:00
Johannes Schickel
29f99a029e
Using path instead of displayName.
...
svn-id: r23541
2006-07-20 21:41:59 +00:00
Johannes Schickel
73869dca9f
- don't error on CHAPTER1.VRM miss anymore
...
- nicer error messages when no font files are found
- implements nicer way to load fonts
svn-id: r23531
2006-07-16 19:44:39 +00:00
Johannes Schickel
1a31d7da7e
Should fix loading of pakfiles.
...
svn-id: r23516
2006-07-15 21:22:07 +00:00
Johannes Schickel
1ad8d3ee6e
Adds filesize check for kyra.dat, this forces to upgrade always to the newest version though.
...
svn-id: r23514
2006-07-15 20:46:27 +00:00
Johannes Schickel
ea0e3a806c
Get rid of some asserts and adds error messages instead.
...
svn-id: r23513
2006-07-15 20:37:32 +00:00
Johannes Schickel
d630b3e722
Little cleanup.
...
svn-id: r23512
2006-07-15 20:32:54 +00:00
Johannes Schickel
04503d462d
Use the FS Api to load all .PAK and .APK files. (I just made a few quick tests, but before this should be integrated to branch-0-9-0 there should be a test for it on *every* platform, since I'm not quite sure if FilesystemNode::displayName is useable for this...)
...
svn-id: r23511
2006-07-15 20:30:36 +00:00
Johannes Schickel
abdebd3bfd
- fixes some c/p errors from my last commit
...
- fixes embedded pak loading
svn-id: r23425
2006-07-08 14:25:23 +00:00
Johannes Schickel
57621c9245
Implements loading of 'westwood.001' for kyra3 (no need to run the installer anymore).
...
(thanks to eriktorbjorn for his code to extract files from westwood.001)
svn-id: r23423
2006-07-08 13:56:56 +00:00
Johannes Schickel
93e9dee0d1
Adds a message dialog if kyra.dat is missing which tells the user to download the kyra.dat file.
...
svn-id: r23421
2006-07-08 12:23:44 +00:00
Johannes Schickel
35e7eacc3f
Changes some char* usage to Common::String.
...
svn-id: r22902
2006-06-03 18:30:07 +00:00
Johannes Schickel
6cfb416d44
- Replaces usage of PAKChunk* with PAKChunk for Common::List, should solve some strange MSVC6 warnings/(errors).
...
svn-id: r22900
2006-06-03 17:58:13 +00:00
Oystein Eftevaag
5d562eb3c5
Committed patch [ 1496602 ] KYRA: typo on Kyra2 file list
...
, thanks to Bellut
svn-id: r22729
2006-05-29 01:55:42 +00:00
Johannes Schickel
1750be5b5a
- makes Screen::getPagePtr private
...
- introduces Screen::getCPagePtr and Screen::getPageRect (which should ease the introduction of dirty rect handling)
- moves KyraEngine::loadBitmap to Screen
svn-id: r22716
2006-05-28 12:19:45 +00:00
Johannes Schickel
727f66de39
Commits Chriliths patch for fixing Kyra on PalmOS.
...
svn-id: r22708
2006-05-28 11:43:04 +00:00
Oystein Eftevaag
9a7f92d558
Kyra.dat wasn't being loaded for the kyra1 demo (which is needed). Fixed.
...
svn-id: r22696
2006-05-28 04:08:25 +00:00
Johannes Schickel
c8aa32d095
- implements kyrandia 3 wsa loader
...
- fixes initalisation problems
- adds setX, setY, setDrawPage to Kyra::Movie instead of directly accessing _x, _y and _drawPage
svn-id: r22490
2006-05-16 16:04:24 +00:00
Johannes Schickel
a5b4fb7f18
- little cleanups
...
- adds kyra3 dummies
svn-id: r22425
2006-05-12 23:57:53 +00:00
Johannes Schickel
96fd5e1fbc
- modifies loadBitmap not to crash if a image isn't found
...
- starts to clean up the engine initalisation code
svn-id: r22308
2006-05-03 13:40:21 +00:00
Oystein Eftevaag
ff7955f4d3
Adds archive file list, MD5 for my CD version, and a few function stubs for Hand of Fate, to use as a basis for further work
...
svn-id: r22252
2006-05-01 00:25:41 +00:00
Max Horn
1470dadb1d
Changed File::open to take a Common::String as file name parameter
...
svn-id: r21867
2006-04-14 01:48:51 +00:00
Max Horn
8cdee5a931
Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 to ~250). Many greetings to eriktorbjorn, and have fun recompiling.
...
svn-id: r21500
2006-03-29 15:59:37 +00:00
Oystein Eftevaag
74aa771143
Changed 'amiga' keywords to 'isAmiga' in the resource handling code to avoid #define conflicts
...
svn-id: r21366
2006-03-18 14:55:29 +00:00
Johannes Schickel
f9f2cd2dbe
- started to rework static resource loading
...
- made some function parameters const (to work with new static res code)
svn-id: r21365
2006-03-18 14:43:18 +00:00
Torbjörn Andersson
408b9a41ee
Gave the loadBitmap debug message its old debug level back. (I.e. made it less
...
noisy.)
svn-id: r21303
2006-03-14 23:29:29 +00:00
Johannes Schickel
c12a5a35be
- Deletes wrong spaces in debugC calls in resource.cpp
...
- Adds support for amiga .pak files (and a filelist)
svn-id: r21299
2006-03-14 19:48:08 +00:00
Johannes Schickel
f5efc8b169
Commits patch #1437774 ("KYRA1: Game will crash if bitmap is missing").
...
svn-id: r21146
2006-03-08 21:21:56 +00:00