Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-06-18 | Turned more warnings into errors, some cleanup | Filippos Karapetis | |
svn-id: r49990 | |||
2010-06-18 | Process kAddAfter with 4 parameters (Torin's Passage) | Filippos Karapetis | |
svn-id: r49976 | |||
2010-06-13 | Fixed regression from commit #49251, and added an explanation. Calls to ↵ | Filippos Karapetis | |
kNewNode with 1 parameter are handled properly again. Fixes the demo of Phantasmagoria 1. Thanks to lskovlun and waltervn for spotting this svn-id: r49638 | |||
2010-06-10 | Unified invokeSelector() and invokeSelectorArgv(), and removed the INV_SEL ↵ | Filippos Karapetis | |
kludge. Also, removed the selectorInvocation parameter - if invokeSelector() fails, the error is in most cases unrecoverable, and the error description thrown covers all cases where kContinueOnInvalidSelector was used. This uncovered a bug too: in some places, non reg_t parameters were parsed svn-id: r49564 | |||
2010-05-29 | Mass renaming of selector-related functions, and removed some defines which ↵ | Filippos Karapetis | |
were just cloaking functions with a different name - GET_SEL32 -> readSelector - GET_SEL32V -> readSelectorValue - PUT_SEL32 -> writeSelector - PUT_SEL32V -> writeSelectorValue Also, changed some selector-related function names and variables to CamelCase svn-id: r49317 | |||
2010-05-26 | Made _k_new_node() a method of the segment manager, and fixed a bug with the ↵ | Filippos Karapetis | |
rarely used SCI0 kernel function kSort in the process (_k_new_node was called with key, value instead of value, key inside kSort) svn-id: r49251 | |||
2010-03-08 | SCI: Make EngineState parameter to INV_SEL explicit | Max Horn | |
svn-id: r48202 | |||
2010-03-08 | SCI: Made some stuff static | Max Horn | |
svn-id: r48199 | |||
2010-02-12 | SCI: Revert r47929 (bad idea, as we may run out of offsets). Instead, adapt ↵ | Walter van Niftrik | |
SCI32 list iteration code to store node successor before invoking. svn-id: r48036 | |||
2010-02-06 | Added a sanity check for kListAt and made the hack for displaying text work ↵ | Filippos Karapetis | |
in SCI2 only svn-id: r47931 | |||
2010-02-05 | SCI: Add a 'SELECTOR' macro | Max Horn | |
svn-id: r47918 | |||
2010-01-30 | SCI: Remove extra '\n's in debugC messages | Willem Jan Palenstijn | |
svn-id: r47707 | |||
2010-01-29 | SCI: Move selector stuff to new header; reorder k_argc & k_argp param of ↵ | Max Horn | |
invoke_selector svn-id: r47665 | |||
2010-01-28 | kDisposeList() is not needed according to waltervn, as the garbage collector ↵ | Filippos Karapetis | |
automatically clears unused objects svn-id: r47653 | |||
2010-01-28 | Disabled the automatic list fixing feature, introduced in rev. #47636 ↵ | Filippos Karapetis | |
(there's no point in fixing lists created by game scripts) svn-id: r47650 | |||
2010-01-28 | SCI: Cleanup | Walter van Niftrik | |
svn-id: r47649 | |||
2010-01-28 | Handle calls to NewNode() with just one parameter. | Lars Skovlund | |
Takes care of Phantasmagoria, Torin, etc. svn-id: r47643 | |||
2010-01-28 | Since we fix the list problems inside isSaneNodePointer(), don't abort ↵ | Filippos Karapetis | |
processing of the list svn-id: r47637 | |||
2010-01-28 | - The list checks now throw more verbose warnings | Filippos Karapetis | |
- Some obvious list problems are now fixed automatically when found, after the relevant warnings are shown - kDisposeList now clears all the nodes in the list - Some cleanup svn-id: r47636 | |||
2010-01-03 | sane_nodep() and sane_listp() should not be dummy functions when ↵ | Filippos Karapetis | |
DISABLE_VALIDATIONS is set, so that the engine doesn't try and refer to null pointer objects (and subsequently crash) svn-id: r46956 | |||
2010-01-03 | Fixed compilation with DISABLE_VALIDATIONS, and fixed a bug in kPrevNode | Filippos Karapetis | |
svn-id: r46949 | |||
2009-12-30 | Formatting. | Johannes Schickel | |
svn-id: r46755 | |||
2009-12-30 | Fixed warnings | Filippos Karapetis | |
svn-id: r46747 | |||
2009-12-30 | Initial implementation of the SCI21 kList kernel function (which calls all ↵ | Filippos Karapetis | |
the other list-related functions), thanks to the help of waltervn svn-id: r46744 | |||
2009-12-30 | SCI32: Moved all the list related kernel functions inside klists.cpp, and ↵ | Filippos Karapetis | |
implemented kListAllTrue with the help of waltervn svn-id: r46742 | |||
2009-10-18 | SCI: Make the implicit segMan param to GET_SEL32(V) and PUT_SEL32(V) explicit | Max Horn | |
svn-id: r45234 | |||
2009-10-09 | Some const correctness changes; cleanup | Max Horn | |
svn-id: r44850 | |||
2009-10-07 | SCI: Turn lookup_node & lookup_list into SegManager::lookupNode & ↵ | Max Horn | |
SegManager::lookupList svn-id: r44769 | |||
2009-10-04 | SCI: Rename EngineState::segMan to _segMan | Max Horn | |
svn-id: r44629 | |||
2009-10-02 | Fix some cppcheck warnings reported by salty-horse | Max Horn | |
svn-id: r44538 | |||
2009-09-30 | Changed the list sanity checks to return warnings instead of errors in case ↵ | Filippos Karapetis | |
of failure - apparently, this can occur in some games, e.g. Longbow and QFG1 svn-id: r44503 | |||
2009-09-29 | - Changed the unimplemented debug SCI kernel functions (InspectObj, ↵ | Filippos Karapetis | |
ShowSends, ShowObjs, ShowFree, StackUsage and Profiler) to be dummy functions - we have our own debugger, and don't use these functions for debugging - Removed the function number parameter from all kernel functions, as it's no longer needed, and removed the FAKE_FUNCT_NR hack - Removed kUnknown() and kStub() - Dummy/unknown kernel functions are no longer invoked, and a warning is shown instead, with the paremeters passed to them Note: there is an evil hack used for debugging scripts in invoke_selector(), which probably no longer works now svn-id: r44461 | |||
2009-09-17 | SCI: Rename WAS_FUNCT_NR to FAKE_FUNCT_NR; turn some #defines into enums | Max Horn | |
svn-id: r44169 | |||
2009-09-17 | SCI: Rename MemObject -> SegmentObj | Max Horn | |
svn-id: r44130 | |||
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-06 | SCI: Rename resManager -> resMan; segManager -> segMan | Max Horn | |
svn-id: r43980 | |||
2009-09-02 | Some renaming: | Filippos Karapetis | |
getresourceManager -> getResourceManger resourceManager -> resMan segmentManager ->segMan svn-id: r43908 | |||
2009-09-02 | SCI: funct_nr is not used in 99% of all opcodes -- hide it in those (to be ↵ | Max Horn | |
removed eventually) svn-id: r43905 | |||
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-20 | remove \n's from error() calls | Joost Peters | |
svn-id: r43571 | |||
2009-06-04 | SCI: Slightly modified kAddAfter so that it does not modify its arguments ↵ | Max Horn | |
needlessly svn-id: r41174 | |||
2009-06-02 | Moved some more console commands to ScummVM's debug console | Filippos Karapetis | |
svn-id: r41126 | |||
2009-06-01 | Replaced kernel_oops with error(), and added an enum to clarify the cases ↵ | Filippos Karapetis | |
where invoke_selector should stop svn-id: r41095 | |||
2009-05-31 | Removed script_error_flag and script_debug_flag, which were used to error ↵ | Filippos Karapetis | |
out if something went wrong and open the debugger console. Changed all the places where they were used to error() out instead, as ScummVM's debugger console can open on error() svn-id: r41073 | |||
2009-05-31 | The error() and warning() functions add ! and newline automatically. (I didn't | Torbjörn Andersson | |
look at debug() and debugC(), since I'm really bored with this now. :-) svn-id: r41061 | |||
2009-05-30 | - Removed debug_mode from the engine state | Filippos Karapetis | |
- Turned all SCIkwarn and SCIkdebug functions to ScummVM's debugC function - Placed some debug code in appropriate defines: DEBUG_PARSER, DEBUG_AVOIDPATH and DEBUG_SOUND - Removed the "debuglog" command and the "script_checkloads_flag" and "sci_debug_flags" variables svn-id: r41033 | |||
2009-05-21 | Removed the PREG, PSTK, IS_NULL_REG and REG_EQ defines | Filippos Karapetis | |
svn-id: r40767 | |||
2009-05-18 | SCI: Removed ENTRY_IS_VALID macro | Max Horn | |
svn-id: r40690 | |||
2009-05-18 | Don't print __FILE__,__LINE__ in *_list related debug output, it would only ↵ | Johannes Schickel | |
print klists.cpp and the according line anyway. svn-id: r40681 |