Filippos Karapetis
bf5e4431d8
Fixed regression in EGA games
...
svn-id: r40567
2009-05-14 19:42:46 +00:00
Filippos Karapetis
443aacee79
Added a parameter to the graphics resource manager to determine if the running SCI1 game is VGA or not (better than modifying the detected SCI resource version)
...
svn-id: r40566
2009-05-14 19:33:03 +00:00
Filippos Karapetis
97bdf32a59
Added the EGA version of Longbow, and partially reverted my previous commit. SCI1 EGA games should *really* be working now
...
svn-id: r40565
2009-05-14 18:55:30 +00:00
Filippos Karapetis
999d46b241
Started using game-specific flags and removed/replaced some SCI version checks with flags.
...
- The SCI0 new script header and the angles check have been replaced by the GF_SCI0_OLD flag
- The SCI0 new drawpic parameter and the new priority check have been replaced by the GF_SCI0_OLDGFXFUNCS flag
- Removed the code which retries to use the newer script header in SCI0 games if the detected one is wrong, as that case should be covered by the GF_SCI0_OLD flag
- Removed the leftover min_version and max_version variables from gamestate
- Cleaned up kGetTime() a bit
svn-id: r40552
2009-05-14 09:12:27 +00:00
Max Horn
d09037fa6c
SCI: Hacked stuff up so that debugger commands also print on the GUI console
...
svn-id: r40460
2009-05-11 18:18:43 +00:00
Max Horn
d66d1ffab3
SCI: Replace global vars cmd_paramlength & cmd_params by Common::Array<cmd_param_t> param to console hook commands
...
svn-id: r40452
2009-05-11 13:31:37 +00:00
Max Horn
7c75e8e2ef
SCI: Reduced header deps
...
svn-id: r40451
2009-05-11 13:31:17 +00:00
Max Horn
5881abb213
SCI: Removed unused vars; doxygenified some comments; cleanup
...
svn-id: r40159
2009-04-27 12:29:51 +00:00
Max Horn
b73301748a
SCI: Renamed gfx_state_t -> GfxState
...
svn-id: r40155
2009-04-27 11:12:08 +00:00
Filippos Karapetis
20cc4f3dd7
Restored the ability to change the active port bound, by moving it inside gfx_state_t (it makes much more sense for it to be there, instead of inside user-defined settings). Placed notes inside gfxr_draw_pic01() and gfxr_draw_pic11() for the usage of the current titlebar size in there
...
svn-id: r40057
2009-04-21 19:57:11 +00:00
Matthew Hoops
2d83233503
Print out the SCI interpreter version and not the resource version when saying what version we're emulating
...
svn-id: r39892
2009-04-07 15:05:53 +00:00
Filippos Karapetis
6fe12a0888
pic_port_bounds was only set from command-line parameters it seems, so it's safe to put it together with the rest of the options
...
svn-id: r39800
2009-04-02 16:38:33 +00:00
Filippos Karapetis
1e8bd16c1e
- Wrapped all the code for custom graphics options around a CUSTOM_GRAPHICS_OPTIONS define. Most of these options don't work in 256-color mode, plus there is currently no way to actually set/change them somehow (other than modifying the code)
...
- Added a FIXME for the abuse of the pic_port_bounds graphics option - it's actually set by the game itself in kSetPort()
- Added some test code for setting palette intensity in KPalette() (currently disabled)
svn-id: r39794
2009-04-01 20:32:45 +00:00
Filippos Karapetis
a6f49a636b
- Moved palette initialization inside the graphics resource manager
...
- The static palette is no longer needlessly referenced directly outside the graphics resource manager
- Moved the SCI interpreter version inside the graphics resource manager, instead of gfx_state_t
svn-id: r39626
2009-03-23 08:43:53 +00:00
Filippos Karapetis
c9eff6e1f8
Cleaned up graphics initialization a bit
...
svn-id: r39513
2009-03-18 11:07:29 +00:00
Max Horn
aad0ad3fa6
SCI: Added new header gfx/font.h and removed some dead code
...
svn-id: r39211
2009-03-08 08:15:56 +00:00
Max Horn
2dfae035ac
SCI: Reduced header interdependencies some more
...
svn-id: r39202
2009-03-07 19:23:47 +00:00
Max Horn
302a99a2c0
SCI: cleanup
...
svn-id: r39106
2009-03-04 05:19:19 +00:00
Max Horn
8022122bb9
SCI: Added kDebugLevelDclInflate; changed decompressors to *not* use fprintf or printf
...
svn-id: r39055
2009-03-01 21:48:39 +00:00
Max Horn
dd98126423
Engines: Fused several init&go methods into a single run method
...
svn-id: r39003
2009-03-01 04:42:46 +00:00
Max Horn
d7b06b7d42
SCI: Renamed ResourceManager::sci_version to _sciVersion, to avoid var shadowing warnings; some other tweaks
...
svn-id: r38984
2009-02-28 22:19:22 +00:00
Max Horn
479751104f
SCI: Renamed include/engine.h to engine/state.h; added a corresponding .cpp file with the EngineState constructor
...
svn-id: r38921
2009-02-27 02:23:40 +00:00
Max Horn
bf0860fc5e
SCI: Commited file handling revamp, work in progress
...
svn-id: r38919
2009-02-27 01:17:24 +00:00
Paweł Kołodziejski
91ee9a3eb8
not needed this includes anymore
...
svn-id: r38857
2009-02-24 21:13:32 +00:00
Max Horn
b5df97ad2b
SCI: Moved kernel.h and kdebug.h from include/ to engine/; untangled header deps some more
...
svn-id: r38833
2009-02-24 05:51:55 +00:00
Max Horn
152ed65c50
SCI: Don't chdir to the gamepath anymore
...
svn-id: r38809
2009-02-23 04:36:40 +00:00
Max Horn
2413a5690e
SCI: Got rid of resource_dir & work_dir (temporarily disabled f_open_mirrored for that)
...
svn-id: r38807
2009-02-23 04:31:11 +00:00
Filippos Karapetis
db343c7287
Removed unused antialiasing code (plus, we do antialiasing at the OSystem graphics backend)
...
svn-id: r38800
2009-02-23 00:39:00 +00:00
Max Horn
1687a5e8d0
SCI: Rewrite the way file handles are managed
...
svn-id: r38794
2009-02-22 21:38:46 +00:00
Travis Howell
edc73529af
Add resource version option to game detection table, for games version(s) with undetected/unexpected resource types.
...
svn-id: r38776
2009-02-22 03:40:51 +00:00
Filippos Karapetis
fcf5e87de6
- Made ResourceManager accessible from _vm
...
- Replaced c_version by its corresponding ScummVM equivalent command
svn-id: r38775
2009-02-22 01:33:16 +00:00
Filippos Karapetis
a46a2d9c92
Fixed compilation under Windows
...
svn-id: r38770
2009-02-22 00:38:39 +00:00
Max Horn
d6e397233f
SCI: More cleanup
...
svn-id: r38758
2009-02-21 22:40:58 +00:00
Filippos Karapetis
9036c0fee0
Renamed SCI's console to sciconsole (MSVC has problems with files with the same name under different directories). ScummVM's console can be enabled correctly under MSVC now
...
svn-id: r38722
2009-02-21 18:46:03 +00:00
Paweł Kołodziejski
03769a6d56
formating
...
svn-id: r38700
2009-02-21 15:30:47 +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
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
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
701279fb40
Changed some SCIkdebug() calls to debugC()
...
svn-id: r38634
2009-02-20 22:21:33 +00:00
Filippos Karapetis
9582e48574
Some initial code for a debug console (still non-working)
...
svn-id: r38623
2009-02-20 21:26:31 +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
617c63c1ed
SCI: Removed unused allow_patches param/member
...
svn-id: r38595
2009-02-20 15:47:37 +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
Jordi Vilalta Prat
20d0395b69
- Moved SciEngine code to sci.cpp
...
- Fill the platform on fallback detection
- Report unparseable version strings
- Map known non-numeric version strings to their numeric counterparts
- Fix a crash caused by uninitialized LZEXE data
svn-id: r38589
2009-02-20 14:45:28 +00:00
Filippos Karapetis
a501d4dca0
Added methods to get information for the detected game version
...
svn-id: r38502
2009-02-18 20:08:49 +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
Max Horn
f245cf55b8
SCI: Merged main_ into SciEngine::go()
...
svn-id: r38433
2009-02-17 18:16:48 +00:00