Commit Graph

290 Commits

Author SHA1 Message Date
Max Horn
ed292fb498 silenced some warnings
svn-id: r39566
2009-03-20 13:30:10 +00:00
Walter van Niftrik
a45ed16fc4 SCI: converted aatree into a class
svn-id: r39544
2009-03-19 22:47:30 +00:00
Filippos Karapetis
723bc879f8 Changed abs_rect_t to Common::Rect
svn-id: r39518
2009-03-18 16:43:12 +00:00
Filippos Karapetis
e546c60948 Further objectification of the graphics resource manager
svn-id: r39499
2009-03-17 23:30:57 +00:00
Filippos Karapetis
063ce3938d Started objectifying the graphics resource manager (refer to patch #2689887)
svn-id: r39492
2009-03-17 21:08:33 +00:00
Max Horn
95c58e76d6 SCI: Added TODO: Merge SegInterface and MemObject? And some cleanup
svn-id: r39485
2009-03-17 16:08:25 +00:00
Max Horn
3c23ba7d73 SCI: Got rid of various SegManager::free_* methods
svn-id: r39484
2009-03-17 16:07:58 +00:00
Filippos Karapetis
80c243e5ca Renamed some defines:
- FREESCI_CURRENT_SAVEGAME_VERSION, FREESCI_MINIMUM_SAVEGAME_VERSION -> CURRENT_SAVEGAME_VERSION, MINIMUM_SAVEGAME_VERSION (saved games are not compatible with FreeSCI's ones anymore)
- _K_VIEW_SIG_FLAG_FREESCI_STOPUPD -> _K_VIEW_SIG_FLAG_STOPUPD (like the rest of the flags)
- Removed FREESCI_KFUNCT_GLUTTON (unused)

svn-id: r39478
2009-03-17 08:03:42 +00:00
Filippos Karapetis
ebfdd92727 Removed the "About FreeSCI" menu as discussed in -devel, now that the FreeSCI contributors have been moved to the AUTHORS file
svn-id: r39476
2009-03-17 07:57:02 +00:00
Filippos Karapetis
4bd84b7311 Replaced "xl" with "width" and "y1" with "height" in places where rectangles are used
svn-id: r39435
2009-03-16 00:07:12 +00:00
Max Horn
466ba4bbfe SCI: Rewrote the save/load code, see also patch #2687400.
The new format is incompatible with the old one, and is still subject to
some further changes. Also, regressions are quite possible, so watch out.
Finally, the new code still contains some TODOs and FIXMEs. Several of
these will be more or less automatically resolved once other code gets
C++ified.

svn-id: r39430
2009-03-15 20:31:29 +00:00
Max Horn
7df4e2a80f SCI: Indention changes, changed 'songlib_t' params to 'const songlib_t &'
svn-id: r39429
2009-03-15 20:31:15 +00:00
Max Horn
f64d223e07 cleaning up after myself again *sigh*
svn-id: r39382
2009-03-14 01:52:14 +00:00
Max Horn
f91eaf9f1a SCI: Fixed warning
svn-id: r39381
2009-03-14 01:45:11 +00:00
Max Horn
150b38ffb7 SCI: Removed more dead code
svn-id: r39379
2009-03-14 01:44:53 +00:00
Filippos Karapetis
31c66b5931 Removed two empty switch statements to silence an MSVC warning
svn-id: r39376
2009-03-14 00:12:23 +00:00
Filippos Karapetis
b78001f7ca Changed the "internal" variable inside gfxr_pic_t to priorityTable (cause that's what it is), and changed its type to int * to avoid unneeded casts
svn-id: r39375
2009-03-14 00:05:01 +00:00
Max Horn
364ce5874d SCI: cleanup
svn-id: r39371
2009-03-13 16:31:38 +00:00
Filippos Karapetis
7854a01f14 Changed the parameter passed to isprint() to be unsigned, according to MSDN (thanks wjp)
svn-id: r39370
2009-03-13 10:36:57 +00:00
Filippos Karapetis
0916523763 Added an explanatory comment for commit #39368
svn-id: r39369
2009-03-13 07:56:06 +00:00
Filippos Karapetis
f4eb159eb8 LSL5 no longer throws an assertion after the intro
svn-id: r39368
2009-03-13 01:36:07 +00:00
Filippos Karapetis
36a801ad14 EngineState is a struct, not a class
svn-id: r39355
2009-03-12 08:14:55 +00:00
Max Horn
6a2efdd36d SCI: cleanup
svn-id: r39353
2009-03-12 03:26:58 +00:00
Max Horn
642bad22d8 SCI: Removed most uses of the 'inline' keyword. It is usually better to let the compiler figure out what to inline. As it is, most of these looked as if they were randomly placed ;)
svn-id: r39352
2009-03-12 03:26:47 +00:00
Max Horn
40b313c28e SCI: Moved savegame specific stuff from state.h to a new header savegame.h
svn-id: r39351
2009-03-12 03:26:21 +00:00
Max Horn
ca4bdb8572 SCI: Removed some dead code
svn-id: r39349
2009-03-12 02:40:04 +00:00
Filippos Karapetis
26135a175c Changed a case inside inline_lookup_node() to non-fatal, for now, to make it possible to walk around in SQ4 (check the FIXME comment)
svn-id: r39348
2009-03-11 23:47:00 +00:00
Filippos Karapetis
88b44cef24 Fix heap corruption when assigning the save game directory
svn-id: r39343
2009-03-11 22:50:06 +00:00
Max Horn
862c9547c6 SCI: Removed some dead code
svn-id: r39328
2009-03-11 02:32:20 +00:00
Filippos Karapetis
54e2aedb46 Added FIXME for heap corruption occurring when exiting SCI games
svn-id: r39315
2009-03-10 22:04:48 +00:00
Max Horn
1bc84955a3 SCI: Removing unused line from savegame.cfsml, fixing SongIteratorMessage -> SongIterator::Message in it
svn-id: r39306
2009-03-10 19:11:35 +00:00
Johannes Schickel
39359479ea - Fix code indentation
- Some (minor other) fromatting fixes

svn-id: r39304
2009-03-10 18:42:18 +00:00
Filippos Karapetis
2a4c6bdb71 Added missing SVN keywords
svn-id: r39303
2009-03-10 18:35:13 +00:00
Filippos Karapetis
073a1b3f96 Formatted code to conform to our coding standards. Also, added parentheses to clarify "&" operator precedence
svn-id: r39302
2009-03-10 18:33:36 +00:00
Johannes Schickel
74cea8d75d - Fix warning
- Fix missing return in stringfrag_getchar (someone check out the FIXME there, please)

svn-id: r39301
2009-03-10 18:22:10 +00:00
Lars Skovlund
9b4f52aefd Add missing file.
svn-id: r39300
2009-03-10 18:10:22 +00:00
Lars Skovlund
49393c79e5 Minor fix to deallocate STRING_FRAG segments properly
svn-id: r39299
2009-03-10 17:41:58 +00:00
Filippos Karapetis
d8824d631a Fixed warnings
svn-id: r39298
2009-03-10 16:24:40 +00:00
Lars Skovlund
3cddcb1660 String fragments support
WIP: No regressions in this part, I hope

svn-id: r39297
2009-03-10 14:52:02 +00:00
Max Horn
6b58973536 SCI: Renamed SongIteratorMessage -> SongIterator::Message; cleanup
svn-id: r39289
2009-03-10 02:42:22 +00:00
Max Horn
6c93249715 SCI: result_word_t -> ResultWord; switched to Common::List for storing lists of ResultWords
svn-id: r39278
2009-03-09 22:25:33 +00:00
Willem Jan Palenstijn
a00559136f Fix uninitialized color meta-values.
This fixes holes in text boxes in Iceman, among other things.

svn-id: r39274
2009-03-09 20:31:43 +00:00
Max Horn
4e6a7d83d1 SCI: Rewrote handling of song wakeup times & (iterator) delays, to avoid rounding issues between ticks (1/60s) and milliseconds; also fixed a bug (coming from Glutton ;) where delays measured in millisecs were treated as ticks instead. Thanks to Walter for the precursor of this patch
svn-id: r39263
2009-03-09 16:15:35 +00:00
Willem Jan Palenstijn
ced40b2266 Use new Palette class to manager pixmap palettes.
There are some remaining regressions with text colour in SCI1 games,
but overall it should fix more than it breaks.

svn-id: r39242
2009-03-08 20:17:01 +00:00
Max Horn
efa5493b2d SCI: Changed suffix list to be stored as a Common::List; also fixed spelling: suffices -> suffixes
svn-id: r39214
2009-03-08 08:17:43 +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
2dfae035ac SCI: Reduced header interdependencies some more
svn-id: r39202
2009-03-07 19:23:47 +00:00
Filippos Karapetis
5c8ea3ccf4 Updated savegame.cfsml
svn-id: r39198
2009-03-07 18:43:15 +00:00
Filippos Karapetis
1e29983d8e Replaced getInt16, getUInt16 and putInt16
svn-id: r39189
2009-03-07 16:14:20 +00:00
Max Horn
c2f08b10d2 SCI: More cleanup in the song iterator codebase
svn-id: r39177
2009-03-07 06:56:39 +00:00