Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-10-14 | SCI: Rename some vars (cleaning up what seems to have been caused by a blind ↵ | Max Horn | |
global search & replace) svn-id: r45060 | |||
2009-10-13 | SCI: Merge SegManager::alloc_Hunk into SegManager::allocateHunkEntry | Max Horn | |
svn-id: r45041 | |||
2009-10-12 | SCI: Fix warnings, cleanup | Max Horn | |
svn-id: r44978 | |||
2009-10-11 | More work on the Object class | Filippos Karapetis | |
svn-id: r44921 | |||
2009-10-10 | Started rewriting the Object struct into a class | Filippos Karapetis | |
svn-id: r44878 | |||
2009-10-08 | SCI: Removed obsolete stringfrags code | Max Horn | |
svn-id: r44803 | |||
2009-10-08 | SCI: Removed SegManager::getDescription | Max Horn | |
svn-id: r44795 | |||
2009-10-07 | SCI: Turn lookup_node & lookup_list into SegManager::lookupNode & ↵ | Max Horn | |
SegManager::lookupList svn-id: r44769 | |||
2009-10-04 | SCI: Add SegManager::findObjectByName() method, make parse_reg_t() local to ↵ | Max Horn | |
console.cpp, and switch other code using it to use findObjectByName() instead. svn-id: r44628 | |||
2009-10-03 | SCI: Fix sign issue in stringfrags | Willem Jan Palenstijn | |
svn-id: r44572 | |||
2009-09-27 | SCI: Adjust isValidOffset to match changes from r44396, | Willem Jan Palenstijn | |
and make maxSize report the valid space starting at offset. svn-id: r44421 | |||
2009-09-27 | SCI: clear strcpy's dest string if src is invalid. | Willem Jan Palenstijn | |
This fixes moving the plank at the start of KQ6 in Text mode. svn-id: r44397 | |||
2009-09-27 | SCI: change segment offsets in reg segments to be in half reg_t. | Willem Jan Palenstijn | |
This makes offsets in raw and reg segments consistent, which fixes string addressing in savegame dialogs. svn-id: r44396 | |||
2009-09-27 | SCI: Add utility functions for copying data between raw/non-raw segments | Willem Jan Palenstijn | |
svn-id: r44387 | |||
2009-09-23 | - Moved the SCI version in a global variable | Filippos Karapetis | |
- Changed all the SCI version checks to use getSciVersion() - Also made getSciVersionDesc a global function (removes some ugly accessing of the SCI engine) The fallback detector should work correctly now svn-id: r44269 | |||
2009-09-22 | - Merged scriptObjInit0() and scriptObjInit11() | Filippos Karapetis | |
- Replaced some cases where getSciVersion() is used with _resMan->sciVersion(), as getSciVersion() will fail with the fallback detector (as the engine is not initialized). Object property accessors still crash currently, when used with the fallback detector svn-id: r44261 | |||
2009-09-22 | SCI: Add some FIXMEs, and print warning if accessing a raw segment as ↵ | Max Horn | |
non-raw or vice versa svn-id: r44245 | |||
2009-09-22 | SCI: Add new type SegmentRef which ultimately will allow us to distinguish ↵ | Max Horn | |
between raw and 'reg_t' memory blocks in client code svn-id: r44244 | |||
2009-09-22 | SCI: SegmentObj's now set their type in constructor; replace central ↵ | Max Horn | |
SegmentObj::createSegmentObj call in SegManager::allocSegment by several explicit 'new' statements; some extra cleanup svn-id: r44242 | |||
2009-09-21 | SCI: Replace IntMapper Script::_objIndices and Common::Array ↵ | Max Horn | |
Script::_objects by a HashMap -- goodbye, class IntMapper svn-id: r44240 | |||
2009-09-21 | SCI: Rename Object::flags and pos to _flags and _pos; tweak scriptObjInit0 ↵ | Max Horn | |
and scriptObjInit11 to be more similar svn-id: r44234 | |||
2009-09-17 | SCI: Add a global getSciVersion() function and make use of it | Max Horn | |
svn-id: r44170 | |||
2009-09-17 | Changed the way object selectors are accessed, by removing the relevant ↵ | Filippos Karapetis | |
defines and adding appropriate methods to the Object structure svn-id: r44138 | |||
2009-09-17 | SCI: Change SegmentId from int to uint16; consistently use segment 0 to ↵ | Max Horn | |
indicate an invalid segment svn-id: r44131 | |||
2009-09-17 | SCI: Rename MemObject -> SegmentObj | Max Horn | |
svn-id: r44130 | |||
2009-09-17 | SCI: More cleanup | Max Horn | |
svn-id: r44129 | |||
2009-09-16 | SCI: Turn some SegManager methods into Script methods | Max Horn | |
svn-id: r44127 | |||
2009-09-16 | SCI: Rename Script class members, change Script from struct to class | Max Horn | |
svn-id: r44126 | |||
2009-09-14 | SCI: Misc cleanup | Max Horn | |
svn-id: r44093 | |||
2009-09-14 | SCI: Rename SegManager::kernelDeref*() methods to SegManager::deref*() | Max Horn | |
svn-id: r44083 | |||
2009-09-14 | SCI: kernelDeref*() functions are now seSegmentManager methods | Max Horn | |
svn-id: r44082 | |||
2009-09-12 | Removed the INST_LOOKUP_CLASS define | Filippos Karapetis | |
svn-id: r44043 | |||
2009-09-12 | - Made obj_get and obj_get_name methods of SegManager (getObject and ↵ | Filippos Karapetis | |
getObjectName, respectively) - Renamed alloc_List -> allocateList, alloc_Node->allocateNode, alloc_hunk_entry->allocateHunkEntry, free_hunk_entry->freeHunkEntry, for consistency svn-id: r44039 | |||
2009-09-07 | Fixed a regression from commit #43999 (segment ID 1 is valid) | Filippos Karapetis | |
svn-id: r44000 | |||
2009-09-07 | SCI: Replace GET_SEGMENT_ANY and GET_OBJECT_SEGMENT macros by new segman methods | Max Horn | |
svn-id: r43999 | |||
2009-09-06 | SCI: Rename SegManager::exports_wide to _exportsAreWide and changed it to a ↵ | Max Horn | |
bool, and rename setExportWidth() to setExportAreWide() svn-id: r43988 | |||
2009-09-06 | SCI: Script::obj_indices is now protected | Max Horn | |
Add new methods init, allocateObject and getObject to class Script, and use them instead of directly accessing Script::obj_indices. Replace RAW_GET_CLASS_INDEX with Script::getObject() svn-id: r43987 | |||
2009-09-06 | SCI: Replace "IntMapper *id_seg_map" in SegManager with a ↵ | Max Horn | |
Common::HashMap<int,int> This simplifies the code considerably. Also changed the savegame format accordingly, which required me to bump the format version to 10. Old saves should still load fine. svn-id: r43986 | |||
2009-09-06 | SCI: cleanup | Max Horn | |
svn-id: r43982 | |||
2009-09-06 | SCI: Cleanup for some SegManager internals | Max Horn | |
- rename segGet and getSegment to getScriptSegment; the two can be distinguished by the parameter count. - rename type SCRIPT_GET to ScriptLoadType to conform with our code formatting conventions - rename get_class_address to getClassAddress - some cleanup svn-id: r43981 | |||
2009-09-04 | Fixing signed/unsigned comparison warning | Sven Hesse | |
svn-id: r43937 | |||
2009-09-04 | Moved some functions inside the SegManager class, and renamed alloc_clone() ↵ | Filippos Karapetis | |
to allocateClone() svn-id: r43935 | |||
2009-09-02 | Some renaming: | Filippos Karapetis | |
getresourceManager -> getResourceManger resourceManager -> resMan segmentManager ->segMan svn-id: r43908 | |||
2009-08-25 | - Split SCI_VERSION_32 into SCI_VERSION_2, SCI_VERSION_2_1, and ↵ | Matthew Hoops | |
SCI_VERSION_3 (each version has a different kernel table). - Improve map detection. - Fix SCI32 object and script initialization (Torin's Passage and GK1 scripts now start up, and probably most SCI2/2.1 games). - Add SCI2 and SCI2.1 kernel tables. svn-id: r43742 | |||
2009-08-25 | - Replaced more cases of EngineState parameters | Filippos Karapetis | |
- Made some version comparisons for old SCI0 versions easier to read - Removed the GET_SEL32SV macro svn-id: r43729 | |||
2009-08-25 | - Simplified the parameters of some functions | Filippos Karapetis | |
- Replaced some EngineState parameters - The SCI version is now obtained from the resource manager or the segment manager, thereby simplifying several functions - Plugged 2 leaks in the fallback detector - Renamed the segment manager and resource manager to "segmentManager" and "resourceManager" in all places, for consistency svn-id: r43722 | |||
2009-08-24 | SCI: Read class table from vocab resource instead of scanning. This fixes | Walter van Niftrik | |
several "invalid selector" VM crashes caused by duplicate classes. svn-id: r43680 | |||
2009-08-23 | - Added more mappings from Sierra's internal IDs to our own ones. Hopefully, ↵ | Filippos Karapetis | |
all SCI0-SCI11 games can now be detected correctly from the fallback detector - Simplified some checks for old script types svn-id: r43678 | |||
2009-08-20 | remove \n's from error() calls | Joost Peters | |
svn-id: r43571 | |||
2009-08-18 | - Added game ID detection to the fallback detector. We still need to map ↵ | Filippos Karapetis | |
some of Sierra's internal IDs to our own ones - The class table is now created in the segment manager constructor svn-id: r43504 |