aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/game.cpp
AgeCommit message (Collapse)Author
2009-05-10SCI: Changed EngineState::pics to a Common::ArrayMax Horn
svn-id: r40434
2009-05-10Reverted commit #40413Filippos Karapetis
svn-id: r40415
2009-05-10OopsFilippos Karapetis
svn-id: r40413
2009-05-10Moved the code which retrieves the current room number in a separate ↵Filippos Karapetis
function and merged _sci1_alloc_system_colors inside _reset_graphics_input svn-id: r40412
2009-05-08SCI: Renamed dstack_t -> DataStack; removed obsolete KF_OLD constantMax Horn
svn-id: r40374
2009-05-05SCI: Actually, it turns out the SystemString is more messed up than I ↵Max Horn
thought: In some places it allocates a memory block of max_size bytes; sometimes max_size+1 bytes; and sometimes max_size*sizeof(reg_t) bytes. And sometimes strings frags are accessed as plain C strings (e.g. when saved), sometimes as a string encode as a series of reg_t values. Ouch :/ svn-id: r40324
2009-05-03SCI: Added SegManager::getScript method and modified code to make use of it; ↵Max Horn
moved VERIFY from seg_manager.h to seg_manager.cpp svn-id: r40268
2009-04-28SCI: Renamed execution_stack -> _executionStack and turned it into a ↵Max Horn
Common::Array svn-id: r40182
2009-04-27SCI: Turned classtable into a Common::Array<Class>Max Horn
svn-id: r40161
2009-04-24SCI: Got rid of GFXW() macro; turned GfxWidget::widfree into destructorsMax Horn
svn-id: r40107
2009-04-24SCI: Renamed gfxw_widget_t and subtypes to GfxWidget etc.Max Horn
svn-id: r40104
2009-04-24SCI: Started to C++ify the gfxw_widget_t codebaseMax Horn
svn-id: r40103
2009-04-24SCI: Store parse_tree_branch_t in a Common::ArraayMax Horn
svn-id: r40100
2009-04-22SCI: Changed kfunct_table to a Common::ArrayMax Horn
svn-id: r40080
2009-04-22SCI: Changed knames (kernel function name table) to Common::StringListMax Horn
svn-id: r40078
2009-04-21Restored the ability to change the active port bound, by moving it inside ↵Filippos Karapetis
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-11SCI: Renamed bp_flag -> breakpointFlag; replaced global send_calls_allocated ↵Max Horn
& send_calls vars by a local Common::Stack instance svn-id: r39930
2009-04-03Changed some references from "FreeSCI" to "SCI" or "ScummVM"Filippos Karapetis
svn-id: r39807
2009-04-02pic_port_bounds was only set from command-line parameters it seems, so it's ↵Filippos Karapetis
safe to put it together with the rest of the options svn-id: r39800
2009-04-01- Wrapped all the code for custom graphics options around a ↵Filippos Karapetis
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-03-30Disabled some unused codeFilippos Karapetis
svn-id: r39765
2009-03-29SCI: Merge static palette into global palette at startupWillem Jan Palenstijn
svn-id: r39747
2009-03-24SCI: Rewrote vocabulary code to use a Common::HashMap<String,ResultWord>Max Horn
svn-id: r39671
2009-03-24SCI: Turned synonyms list into a Common::ListMax Horn
svn-id: r39669
2009-03-24SCI: Changed some char* into Common::StringMax Horn
svn-id: r39663
2009-03-24SCI: C++ify menu codeMax Horn
svn-id: r39659
2009-03-23CleanupFilippos Karapetis
svn-id: r39633
2009-03-22Further objectification of the graphics resource managerFilippos Karapetis
svn-id: r39621
2009-03-11Fix heap corruption when assigning the save game directoryFilippos Karapetis
svn-id: r39343
2009-03-10String fragments supportLars Skovlund
WIP: No regressions in this part, I hope svn-id: r39297
2009-03-08Use new Palette class to manager pixmap palettes.Willem Jan Palenstijn
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-08SCI: Changed suffix list to be stored as a Common::List; also fixed ↵Max Horn
spelling: suffices -> suffixes svn-id: r39214
2009-03-07SCI: Reduced header interdependencies some moreMax Horn
svn-id: r39202
2009-03-07Replaced getInt16, getUInt16 and putInt16Filippos Karapetis
svn-id: r39189
2009-03-03SCI1: Improved color mapping when drawing line/box/text. Text with ↵Greg Frieger
transparent background now displays correctly. svn-id: r39089
2009-02-28SCI: Use the ResourceType enum instead of integers where it makes senseJordi Vilalta Prat
svn-id: r38988
2009-02-28SCI: Renamed ResourceManager::sci_version to _sciVersion, to avoid var ↵Max Horn
shadowing warnings; some other tweaks svn-id: r38984
2009-02-28resource_t struct replaced with stub Resource class for future objectifying. ↵Greg Frieger
Also the crash when exiting SCI1 games was fixed svn-id: r38982
2009-02-28Turned ResourceManager into a class, along with all related functionsGreg Frieger
svn-id: r38978
2009-02-28clean up some warningsAndre Heider
svn-id: r38965
2009-02-28SCI: Renamed some kernel types and general cleanupJordi Vilalta Prat
svn-id: r38961
2009-02-27SCI: Remove empty include/ dirMax Horn
svn-id: r38922
2009-02-27SCI: Renamed include/engine.h to engine/state.h; added a corresponding .cpp ↵Max Horn
file with the EngineState constructor svn-id: r38921
2009-02-27SCI: Moved almost all files from include/ to other dirs; only ↵Max Horn
include/engine.h remains svn-id: r38920
2009-02-27SCI: Commited file handling revamp, work in progressMax Horn
svn-id: r38919
2009-02-26- Removed engine/sys_strings.*Filippos Karapetis
- Renamed sys_string_t -> SystemString, sys_strings_t -> SystemStrings svn-id: r38916
2009-02-26start out with an empty array of file handles, so the Enginestates matches ↵Andre Heider
between startup and restart. really check its size before accessing it (fixes LSL3 restart) svn-id: r38915
2009-02-26reinit sfx in game_init() when it got deinitialized in game_exit(), this ↵Andre Heider
unmutes the game after a restart. shutdown sfx in game_exit() only if there is no EngineState successor (restored game) since gamestate_restore() already reinitialized it. svn-id: r38912
2009-02-25reintroduce game_start_time (removed it in r38701), since the interpreter ↵Andre Heider
can be restarted and it can be retrieved via script function (eg. LSL3 about box) svn-id: r38888
2009-02-24bring back comments but as TODO commentPaweł Kołodziejski
svn-id: r38866