Johannes Schickel
7d8a97b0af
Added error calls when out of memory while uncompressing HoF installer files.
...
svn-id: r32449
2008-05-31 23:26:41 +00:00
Johannes Schickel
a47106e77d
Cleanup.
...
svn-id: r32443
2008-05-31 22:18:36 +00:00
Florian Kagerer
7db0b2b5a1
cleanup
...
svn-id: r32441
2008-05-31 21:48:09 +00:00
Florian Kagerer
a9c9a5404d
fix hof installer file loading
...
svn-id: r32440
2008-05-31 21:15:37 +00:00
Johannes Schickel
4ef680abaf
- Fixed possible invalid memory access in Resource::loadFileToBuf
...
- Reworked compressed installer files handling
- Updated HoF installer file code (thanks to _athrxx for that)
svn-id: r32439
2008-05-31 20:48:41 +00:00
Florian Kagerer
48d3b34a75
- some pauseEngineIntern() code for the HOF sequence player (not tested)
...
svn-id: r32270
2008-05-25 13:30:18 +00:00
Johannes Schickel
6866a4e133
- Cleanup
...
- Added support for showing kyra.dat error messages in a dialog
svn-id: r32259
2008-05-24 22:44:15 +00:00
Johannes Schickel
0897a3a058
- Fixed mismatching malloc/delete[]
...
- More formatting fixes
svn-id: r32255
2008-05-24 19:18:17 +00:00
Johannes Schickel
85e6b8bb0f
Formatting fixes.
...
svn-id: r32254
2008-05-24 19:07:44 +00:00
Florian Kagerer
ec3bc8f84d
some cleanup (especially loads of strange casts)
...
svn-id: r32251
2008-05-24 17:34:20 +00:00
Torbjörn Andersson
398f7be356
Fixed errors, a few of the warnings, and added a FIXME comment about possibly
...
undefined behaviour.
svn-id: r32250
2008-05-24 17:08:35 +00:00
Florian Kagerer
0efebd9876
- add support for HOF floppy versions
...
- playing directly from installer files (WESTWOOD.00X) is supported (not recommended for low-end machines and certain ports)
svn-id: r32249
2008-05-24 16:30:18 +00:00
Johannes Schickel
2e14d05caa
Added default search path "hof_cd"/"malcolm" directory for HoF/Kyra3.
...
svn-id: r32156
2008-05-17 18:24:14 +00:00
Florian Kagerer
771854bdd9
move some kyra 3 static resources to kyra.dat
...
svn-id: r32058
2008-05-12 13:35:58 +00:00
Johannes Schickel
bb03596744
- Renamed KyraEngine to KyraEngine_v1
...
- kyra.* -> kyra_v1.*
- scene.cpp -> scene_v1.cpp
svn-id: r32044
2008-05-11 23:16:50 +00:00
Johannes Schickel
c0f4b3faa7
- load new tlk file on chapter change
...
- added warning when trying to play non-existent soundfile
svn-id: r31742
2008-04-26 22:53:00 +00:00
Johannes Schickel
6aec012921
Simplified Kyra3 TLK loading.
...
svn-id: r31634
2008-04-20 23:38:19 +00:00
Torbjörn Andersson
8cbd185731
Use correct (I hope) size when loading TLK files. The size field in the AUD
...
header does not count the size of the header itself. (This fixes a failed
assertion when entering the Pegasus Landing in Kyrandia 3.)
svn-id: r31590
2008-04-20 07:44:27 +00:00
Johannes Schickel
03caed6ce3
Implemented some kyra opcodes and some chat handling code, now Malcolm should say something after crawling out of the dump.
...
svn-id: r31581
2008-04-19 22:22:00 +00:00
Johannes Schickel
a922069eae
Ops isInPakList behavior was still not quite correct. Fixed bug with embedded pak files.
...
svn-id: r31574
2008-04-19 14:40:37 +00:00
Johannes Schickel
1d6af7b502
Fixed Resource::isInPakList behavior.
...
svn-id: r31573
2008-04-19 14:36:26 +00:00
Johannes Schickel
7e12a50bed
- some minor renaming in TIM code
...
- added exists function to Resource
- started to add checks via exists to assure that important files are present
svn-id: r31572
2008-04-19 14:31:10 +00:00
Florian Kagerer
1d086550a7
- complete support for the playable HOF demo
...
svn-id: r31560
2008-04-18 19:11:58 +00:00
Johannes Schickel
75641c405e
Fixed gcc warning.
...
svn-id: r31543
2008-04-17 17:16:52 +00:00
Johannes Schickel
710976824e
Fixed Kyra 3 TLK file loading.
...
svn-id: r31541
2008-04-17 16:55:13 +00:00
Johannes Schickel
6cd8eda9bd
Implemented support for Kyra3 TLK files.
...
svn-id: r31540
2008-04-17 16:38:26 +00:00
Johannes Schickel
1f91dc0384
- some refactoring for Kyra3
...
- removed unneeded map code in KyraEngine_v3
svn-id: r31488
2008-04-12 23:17:21 +00:00
Kari Salminen
d0f46196c2
Silence MSVC8+ warning C4800 about forcing an int value to bool that got turned into error C2220 (Warning treated as error).
...
svn-id: r31484
2008-04-11 11:05:04 +00:00
Johannes Schickel
a81e9e456d
Load all needed package files for kyra3 on startup.
...
svn-id: r31480
2008-04-10 22:25:38 +00:00
Johannes Schickel
6830ff3449
Small bug fix.
...
svn-id: r31479
2008-04-10 22:22:35 +00:00
Johannes Schickel
6711a494a2
Improved searchpath support. (Should again detect everything Common::File is able to load).
...
svn-id: r31478
2008-04-10 22:18:47 +00:00
Johannes Schickel
05e2b66967
Fixed nameclash.
...
svn-id: r31379
2008-04-04 09:16:25 +00:00
Johannes Schickel
10233af59f
Cleanup.
...
-This line, and those below, will be ignored--
M kyra/resource.cpp
svn-id: r31370
2008-04-03 21:42:04 +00:00
Johannes Schickel
057fb0e9ab
Replaced unloadAllPakFiles with a simple _map.clear on resource class destruction. (Should save a little file i/o need on shutdown)
...
svn-id: r31369
2008-04-03 21:25:05 +00:00
Max Horn
7f81de6794
cleanup
...
svn-id: r31289
2008-03-28 08:30:42 +00:00
Johannes Schickel
e29b4bb0cd
Committed shared pointer implementation of patch #1895703 "COMMON: Managed List".
...
Unlike the patch on the tracker this commit includes documentation for SharedPtr.
svn-id: r31287
2008-03-28 06:03:59 +00:00
Travis Howell
91a33d4d63
Add HoF CD demo.
...
svn-id: r31205
2008-03-20 12:10:30 +00:00
Torbjörn Andersson
4669f2a659
Fixed compilation.
...
svn-id: r31203
2008-03-20 11:58:18 +00:00
Johannes Schickel
e69532bff2
Fixed loading of 'filedata.fdt' in HoF demo from Malcolm's Revenge CD.
...
svn-id: r31202
2008-03-20 11:55:52 +00:00
Johannes Schickel
2af4fc1034
- Implemented opcodes:
...
-> 21: o2_backUpScreen
-> 22: o2_restoreScreen
-> 28: o2_addItemToInventory
-> 50: o2_wipeDownMouseItem
-> 67: o2_loadPalette384
-> 68: o2_setPalette384
-> 165: o2_disableTimer
-> 166: o2_enableTimer
-> 167: o2_setTimerCountdown
- renamed some timer functions
svn-id: r31182
2008-03-18 15:50:43 +00:00
Johannes Schickel
83d2f0c3e7
Oops fix stupid copy&paste error...
...
svn-id: r30950
2008-02-24 12:33:20 +00:00
Johannes Schickel
cb36b056ba
Also add extrapath to default search location for Kyrandia resources.
...
svn-id: r30949
2008-02-24 12:30:12 +00:00
Johannes Schickel
bc257fc378
Fixed comments a bit (typos etc.).
...
svn-id: r30839
2008-02-09 16:27:49 +00:00
Johannes Schickel
76182fbd59
Revised way of how archive files are mounted:
...
- file entries from protected archives do not get overwritten anymore
- preload indicator of archives will be unflagged, if embedded file entries are overwritten by other archives
svn-id: r30838
2008-02-09 16:18:44 +00:00
Johannes Schickel
bacdc6eff0
Revised checking if files can be load.
...
svn-id: r30837
2008-02-09 15:46:06 +00:00
Johannes Schickel
5438bf2e9c
Changed some asserts to errors.
...
svn-id: r30836
2008-02-09 15:33:04 +00:00
Johannes Schickel
15f798d48a
Added filename check before header check when trying to detect archives types, this should lower the file i/o need a lot when starting up kyra2.
...
svn-id: r30835
2008-02-09 15:18:35 +00:00
Johannes Schickel
b3bab9afb9
Implemented proper PAK archive detector.
...
svn-id: r30834
2008-02-09 15:08:49 +00:00
Johannes Schickel
40b19365be
Added another check if PAK file is corrupted.
...
svn-id: r30833
2008-02-09 14:43:43 +00:00
Johannes Schickel
166698d29d
Cleanup.
...
svn-id: r30832
2008-02-09 14:40:52 +00:00