11070 Commits

Author SHA1 Message Date
Eugene Sandulenko
682c272e53 Replace hackish getch() with proper event loop at end of the demo.
svn-id: r41513
2009-06-14 13:49:28 +00:00
Eugene Sandulenko
34d41f61aa Designate hack according to our conventions
svn-id: r41512
2009-06-14 13:41:12 +00:00
Denis Kasak
92dd6d5474 Reworded DraciFont docs (with regards to mentioning ASCII).
svn-id: r41511
2009-06-14 13:32:21 +00:00
Denis Kasak
d6ddbf7062 Removed superfluous checks for NULL in DraciFont::freeFont().
svn-id: r41510
2009-06-14 13:10:12 +00:00
Denis Kasak
b8ec907ea0 Added a Sprite class for handling sprites in the Draci format transparently. Modified the test animation to use it.
svn-id: r41509
2009-06-14 12:44:12 +00:00
Denis Kasak
02cd93421d Fixed evaluation of GPL mathematical expressions. The evaluator now checks that, at the end of the evaluation, the stack only contains one value (i.e. the result of the expression).
svn-id: r41477
2009-06-12 11:32:44 +00:00
Denis Kasak
fc22ab5748 Replaced a magic number with a proper constant.
svn-id: r41476
2009-06-12 10:39:33 +00:00
Denis Kasak
5808e4f940 Made DraciFont::drawString() return early if the string is too long to fit on the screen.
svn-id: r41475
2009-06-12 10:37:46 +00:00
Denis Kasak
837f76f61f Made DraciFont::drawString() take a String reference instead of a copy.
svn-id: r41472
2009-06-12 10:25:05 +00:00
Denis Kasak
32d12e90e3 Removed overflow/underflow checks from DraciFont::drawChar(). Instead, we now calculate the number of pixels that can be drawn without overflowing beforehand. Also added asserts to catch any negative value passed for the coordinates.
svn-id: r41471
2009-06-12 10:22:43 +00:00
Denis Kasak
2308748f01 Made the DraciFont::freeFont() method safe to call in any circumstance by making it check for NULL pointers itself to prevent double free / corruption. This also fixes a potential bug in the destructor.
svn-id: r41469
2009-06-12 09:52:35 +00:00
Denis Kasak
51672df700 Properly documented everything (including the new DraciFont class). Reshuffled some old comments.
svn-id: r41467
2009-06-12 09:45:12 +00:00
Denis Kasak
a36a9a0398 Implemented font handling via the DraciFont class. Reprogrammed the test animation to use the original game fonts. Removed the old drawString() hack.
svn-id: r41454
2009-06-11 20:31:36 +00:00
Denis Kasak
293d0ca65d Added support for the new GUI options.
svn-id: r41442
2009-06-11 01:50:10 +00:00
Denis Kasak
4a9ec62e04 Removed special-casing for the colour black as it's no longer needed.
svn-id: r41440
2009-06-10 21:28:16 +00:00
Denis Kasak
78c07b83f8 Shifted the palette one bit to the left aft toemake the dragon animation brighter.
svn-id: r41439
2009-06-10 21:18:14 +00:00
Denis Kasak
b91f93716a Code formatting
svn-id: r41438
2009-06-10 21:12:38 +00:00
Denis Kasak
2c00d65501 Added an additional debuglevel "archiver" to facilitate displaying debug info from the BAR archiver. Also adjusted numeric debug levels.
svn-id: r41436
2009-06-10 18:18:09 +00:00
Denis Kasak
10b8d82baa Made handleMathExpression() properly handle mathematical expressions inside GPL bytecode (instead of just searching for the ending byte). The actual callbacks still need to be implemented.
svn-id: r41415
2009-06-10 02:59:53 +00:00
Denis Kasak
ba49e539d1 Redesigned the GPL2 disassembler to improve readability. It now does a linear search in a table of commands (instead of having a giant switch) when searching for the correct bytecode command.
svn-id: r41414
2009-06-10 01:35:47 +00:00
Denis Kasak
39a8c71f77 Adding Draci Historie engine skeleton (engine stub, BAR archiver, rudimentary GPL disassembler)
svn-id: r41390
2009-06-08 22:18:52 +00:00
Kari Salminen
cfae016200 Convert FWRenderer and OSRenderer to use Cine::Palette.
Also fix some bugs that came up in testing of Cine::Palette.

svn-id: r41386
2009-06-08 20:46:21 +00:00
Johannes Schickel
7f5b28ee83 - Cleanup
- Fix regression in Kyra1 outro

svn-id: r41384
2009-06-08 20:11:07 +00:00
Johannes Schickel
0f116f1c38 Cleanup.
svn-id: r41381
2009-06-08 18:30:28 +00:00
Fabio Battaglia
51d0005af3 sword1: slight cleanup of psx related sound code and comments
svn-id: r41380
2009-06-08 17:54:44 +00:00
Johannes Schickel
aef8d2b04b Fix out of bounds memory access in Screen::drawShape.
svn-id: r41379
2009-06-08 17:47:37 +00:00
Travis Howell
ddf3336bc1 Add more Polish font data for The Feeble Files.
svn-id: r41374
2009-06-08 14:50:34 +00:00
Travis Howell
87db37316c Add Polish font data for The Feeble Files.
svn-id: r41372
2009-06-08 14:21:43 +00:00
Fabio Battaglia
14c85028b1 sword1: add Broken Sword PSX demo support
svn-id: r41369
2009-06-08 12:37:24 +00:00
Walter van Niftrik
f2fe13b064 SCI: Cleanup
svn-id: r41368
2009-06-08 12:20:36 +00:00
Filippos Karapetis
60f5ac3300 Replaced GFXWARN with warning and GFXDEBUG with debugC
svn-id: r41367
2009-06-08 11:42:13 +00:00
Travis Howell
78de280f12 Update details for the Polish version of The Feeble Files.
svn-id: r41365
2009-06-08 08:56:32 +00:00
Filippos Karapetis
95d32180df Moved some more debug commands to ScummVM's console
svn-id: r41364
2009-06-08 08:38:10 +00:00
Johannes Schickel
b85b408838 - Fix Screen_v2::wsaFrameAnimationStep, now the MR album and LoL intro demo WSAs will be correctly played
- Made album page change in MR a bit slower, so it's visible at least

svn-id: r41362
2009-06-08 02:26:33 +00:00
Filippos Karapetis
ed46e223eb Hopefully fixed memory corruption when loading games
svn-id: r41361
2009-06-07 23:29:11 +00:00
Max Horn
22507d70bb SCI: C++ified the song iterator code a little bit more
svn-id: r41360
2009-06-07 23:05:11 +00:00
Max Horn
0dcb1fa84f SCI: Got rid of g_EngineState
svn-id: r41359
2009-06-07 23:04:34 +00:00
Florian Kagerer
77bcc94f80 LOL: minor bug fix
svn-id: r41358
2009-06-07 22:42:21 +00:00
Johannes Schickel
897c0104c9 Remove unneeded functionality from Screen.
svn-id: r41357
2009-06-07 22:41:38 +00:00
Johannes Schickel
5c233c447b Remove LoLEngine::_gameFlags and convert all Lands of Lore code to use _flagsTable instead.
svn-id: r41351
2009-06-07 20:43:43 +00:00
Johannes Schickel
c7861cb65e Avoid warning about missing SFX file in Lands of Lore (it seems the original misses some datafiles for certain effects).
svn-id: r41350
2009-06-07 19:58:00 +00:00
Walter van Niftrik
a6ed05740f SCI: Moved resource36 handling into resource manager.
svn-id: r41349
2009-06-07 19:15:55 +00:00
Florian Kagerer
4dd29a5985 LOL: minor bug fix in battle system
svn-id: r41348
2009-06-07 18:51:03 +00:00
Max Horn
ee21d82948 SCI: Fixed the broken SciEngine::pauseEngineIntern code by ensuring that SciEngine::_gamestate is updated whenever the EngineState gets changed (due to loading a savestate)
svn-id: r41346
2009-06-07 17:18:11 +00:00
Max Horn
21d948ec05 SCI: Simplified SongLibrary code a bit
svn-id: r41345
2009-06-07 17:07:25 +00:00
Max Horn
62f596821e SCI: Objectified Song struct 'a bit'
svn-id: r41344
2009-06-07 17:07:07 +00:00
Max Horn
d07e9dfb13 SCI: Objectified SongLibrary
svn-id: r41343
2009-06-07 17:06:51 +00:00
Max Horn
f2ca788004 SCI: Renamed various song/songlib related structs and members
svn-id: r41342
2009-06-07 17:06:32 +00:00
Filippos Karapetis
3b687a7a04 Replaced KP_ALT, SKPV_OR_ALT and UKPV_OR_ALT
svn-id: r41340
2009-06-07 16:50:34 +00:00
Filippos Karapetis
36cdd09223 Init _opl to 0. This prevents a crash on exit when the Adlib driver is closed, if the game music driver doesn't support music for the currently playing game (e.g. Christmas 1998)
svn-id: r41339
2009-06-07 16:44:57 +00:00