Andre Heider
7c26fb94d9
missed a file in r38701
...
svn-id: r38703
2009-02-21 16:04:16 +00:00
Willem Jan Palenstijn
34f90ac043
revert large parts of r38621. error() is for fatal errors and does not return. warning() is not for debugging status messages.
...
svn-id: r38696
2009-02-21 14:11:41 +00:00
Joost Peters
3988062776
replace #ifdef WORDS_BIGENDIAN by SCUMM_BIG_ENDIAN
...
svn-id: r38689
2009-02-21 12:21:15 +00:00
Jordi Vilalta Prat
d8d6aaa461
Replaced "typedef struct _seg_manager_t seg_manager_t" with "struct SegManager"
...
svn-id: r38679
2009-02-21 11:04:47 +00:00
Jordi Vilalta Prat
3cc6cdf719
Replaced "typedef struct _state state_t" with "struct EngineState"
...
svn-id: r38678
2009-02-21 10:47:56 +00:00
Oystein Eftevaag
25f7c37171
Wrapped the SCI engine in the Sci namespace.
...
svn-id: r38676
2009-02-21 10:23:36 +00:00
Max Horn
fa75bd23e6
SCI: Yet more cleanup
...
svn-id: r38661
2009-02-21 04:43:49 +00:00
Max Horn
7c87b4901d
SCI: Use GCC_PRINTF hint to the compiler for _SCIkprintf and sciprintf; fixed tons of bad format strings
...
svn-id: r38660
2009-02-21 04:25:56 +00:00
Max Horn
e9e2136c1a
SCI: cleanup
...
svn-id: r38654
2009-02-21 03:24:35 +00:00
Willem Jan Palenstijn
abbca80d61
Converted SCI saving to use saveFileMan. Instead of a savegame being
...
a directory with an id and a state file, a savegame now consists of
two consecutive CFSML-serialized structs: SavegameMetadata and state_t.
The former contains the savegame title, and is loaded when scanning saves.
svn-id: r38649
2009-02-20 23:41:15 +00:00
Filippos Karapetis
65f7ba86ce
Reverted #38631 and readded gfxr_interpreter_needs_multicolored_pointers - apparently, it's needed for SCI1.1 support
...
svn-id: r38641
2009-02-20 23:17:13 +00:00
Filippos Karapetis
701279fb40
Changed some SCIkdebug() calls to debugC()
...
svn-id: r38634
2009-02-20 22:21:33 +00:00
Filippos Karapetis
1a9253bc5e
Remove unused code (gfxr_interpreter_needs_multicolored_pointers)
...
svn-id: r38631
2009-02-20 22:19:11 +00:00
Filippos Karapetis
2ddce51a56
Changed more messages to warnings/errors
...
svn-id: r38621
2009-02-20 20:39:02 +00:00
Filippos Karapetis
ac716ad843
Started conversion of debug messages and debug levels to the ScummVM equivalents. Removed the "stubs" and "warnings" debug levels and replaced such kinds of messages with normal warnings
...
svn-id: r38617
2009-02-20 20:11:12 +00:00
Max Horn
bc360ee525
SCI: Started rewriting file handling. Warning: This will likely introduce
...
regressions, but we just have to start somewhere.
- factored out some common code in engine/kfile.cpp into a separate func
- replaced many uses of chdir, getcwd, sci_init_dir etc. by equivalent
or better functionality from SearchMan etc.
- replaced many uses of sci_open and sci_fopen by using Common::File
and Common::Stream
- C++ified some stuff
- simplified ResourceSource a bit (loosing some unused functionality)
svn-id: r38597
2009-02-20 16:03:50 +00:00
Max Horn
e736b7fa62
SCI: Renamed some ResourceManager members, cleanup
...
svn-id: r38596
2009-02-20 15:55:59 +00:00
Max Horn
617c63c1ed
SCI: Removed unused allow_patches param/member
...
svn-id: r38595
2009-02-20 15:47:37 +00:00
Max Horn
f78f2aeafc
SCI: Renamed resource_source_t -> ResourceSource; some cleanup
...
svn-id: r38593
2009-02-20 15:41:58 +00:00
Max Horn
a2aba2f18e
SCI: Renamed resource_mgr_t -> ResourceManager; added remark to 'the other resource manager' that it should be renamed to GraphicsManager or so
...
svn-id: r38592
2009-02-20 15:24:22 +00:00
Filippos Karapetis
6f4a8dedbe
Rewrote the EXE reading routines (the LZEXE compression stuff is still not completed, and will be implemented in a follow-up commit)
...
svn-id: r38543
2009-02-19 12:42:32 +00:00
Filippos Karapetis
7e5dba8940
Readded the code which reads the version from the original executable to the fallback detector (still very hackish...). This is probably the only known way currently to determine the version used by each game variant and add appropriate game flags
...
svn-id: r38509
2009-02-18 22:20:28 +00:00
Max Horn
7d73e8ccc4
cleanup
...
svn-id: r38508
2009-02-18 22:07:15 +00:00
Paweł Kołodziejski
3e32b0a791
remove not used includes
...
svn-id: r38506
2009-02-18 21:57:15 +00:00
Max Horn
d059f38cf2
SCI: Moved util.h to the sci tools, as old_objects.* is the only code using (and requiring) it
...
svn-id: r38501
2009-02-18 20:03:32 +00:00
Max Horn
766783b493
SCI: Some random cleanup
...
svn-id: r38497
2009-02-18 19:14:40 +00:00
Paweł Kołodziejski
c01b069b91
missed to remove code from latest removal
...
svn-id: r38496
2009-02-18 19:12:13 +00:00
Filippos Karapetis
d16311f8bb
Removed some unused GFX driver capability code and flags
...
svn-id: r38473
2009-02-18 12:26:37 +00:00
Filippos Karapetis
fa59ce0d9f
Removed the unused sci_get_homedir() function
...
svn-id: r38466
2009-02-18 10:49:17 +00:00
Filippos Karapetis
5d931adb70
Removed the unused queue code and memfrob() definition
...
svn-id: r38464
2009-02-18 10:28:16 +00:00
Filippos Karapetis
95cc0493b3
Removed the unused memtest, memdup and sci_memdup functions
...
svn-id: r38463
2009-02-18 10:20:48 +00:00
Filippos Karapetis
056a13f710
Moved game version checking to ScummVM's detector and removed the FreeSCI version checking routines
...
svn-id: r38458
2009-02-18 09:09:37 +00:00
Filippos Karapetis
143a539ee3
Cleanup
...
svn-id: r38452
2009-02-17 23:12:29 +00:00
Filippos Karapetis
53ef1bd4fd
Removed already implemented graphic capability flags, and used CLIP inside scummvm_draw_line() to clean up the code a bit
...
svn-id: r38451
2009-02-17 22:53:09 +00:00
Filippos Karapetis
e28439bebc
point_t -> Common::Point
...
svn-id: r38437
2009-02-17 19:15:37 +00:00
Max Horn
a113102d52
SCI: removed unused code
...
svn-id: r38436
2009-02-17 18:21:46 +00:00
Max Horn
e77e56bec1
Revert changed I accidentally commited *sigh*
...
svn-id: r38435
2009-02-17 18:21:27 +00:00
Max Horn
471f630c2e
SCI: Moved sfx_pcm_urat_t from include/sfx_pcm.h to sfx/mixer.h
...
svn-id: r38434
2009-02-17 18:17:01 +00:00
Max Horn
cd8f4c5ae2
SCI: Silence 'check always true' warnings with a trick (temporary, that code needs to be revised anyway)
...
svn-id: r38432
2009-02-17 18:16:41 +00:00
Eugene Sandulenko
c0dbe787d5
Update headers. includes/
...
svn-id: r38409
2009-02-17 15:05:16 +00:00
Filippos Karapetis
d39d83e525
Replaced sci_free() with free() - it's OK to free a NULL pointer, so the checking that sci_free() performed is not necessary
...
svn-id: r38406
2009-02-17 13:51:52 +00:00
Filippos Karapetis
963af0ab02
Removed dead/unused code
...
svn-id: r38400
2009-02-17 09:53:27 +00:00
Filippos Karapetis
ffc07febeb
Removed unused SFX code
...
svn-id: r38396
2009-02-17 09:15:17 +00:00
Filippos Karapetis
a3adca29f2
Removed a lot of unused and compiler-specific debug code. Note that for MSVC, the corresponding checks are enabled by default in the debug build, so there's no need to set them again programmatically. Also, removed the "codebugging" related code
...
svn-id: r38387
2009-02-16 23:28:24 +00:00
Filippos Karapetis
6ec40aa9f6
Removed unused code and defines
...
svn-id: r38385
2009-02-16 22:45:23 +00:00
Jordi Vilalta Prat
c8a3a05a5d
SCI: Changed pcm_device and timer "driver" functionality to use directly the ScummVM modules
...
svn-id: r38373
2009-02-16 16:23:48 +00:00
Max Horn
ee92dbbe41
SCI: Committed stuff I forgot in my last commit; changed int_hash_map_t to a C++ class
...
svn-id: r38360
2009-02-16 09:40:25 +00:00
Travis Howell
42cb3a55d9
Replace strcasecmp with scumm_stricmp.
...
svn-id: r38359
2009-02-16 09:29:07 +00:00
Travis Howell
2d0a897d16
Replace strcasecmp with scumm_stricmp.
...
svn-id: r38356
2009-02-16 09:17:49 +00:00
Paweł Kołodziejski
36d7495577
fixed compilation
...
svn-id: r38350
2009-02-16 07:06:12 +00:00