aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kstring.cpp
AgeCommit message (Collapse)Author
2010-01-24SCI: Fix left aligning and centering in kFormat.Walter van Niftrik
svn-id: r47500
2010-01-24Always memset the newly malloc'ed argument memory to 0 inside kFormatFilippos Karapetis
svn-id: r47498
2010-01-24Replaced CHECK_OVERFLOW1 with assertsFilippos Karapetis
svn-id: r47496
2010-01-23Separated the parser codeFilippos Karapetis
svn-id: r47480
2009-12-30SCI32:Matthew Hoops
- Set signature for Array/String - Add the kernel table differences for the GK2 demo - Implement kMessage changes in SCI32 - Use an empty string as the default path for all games now (and modify kValidPath to accept that only as valid) - Add dereferencing for Arrays svn-id: r46756
2009-11-04CleanupFilippos Karapetis
svn-id: r45652
2009-10-30SCI: kStrAt offset checking fixedMartin Kiewitz
svn-id: r45537
2009-10-30SCI: kStrAt / dont do call, when offset exceeds maxSize. fixes crash in kq5Martin Kiewitz
svn-id: r45530
2009-10-18SCI: Rename game_obj to _gameObjMax Horn
svn-id: r45235
2009-10-18SCI: Make the implicit segMan param to GET_SEL32(V) and PUT_SEL32(V) explicitMax Horn
svn-id: r45234
2009-10-18Added a sanity check in kStrAt()Filippos Karapetis
svn-id: r45213
2009-10-17SCI: kStrAt added fixme commentMartin Kiewitz
svn-id: r45203
2009-10-15SCI: Add support for reg_t based segments to Message()Walter van Niftrik
svn-id: r45113
2009-10-10Replaced make_reg(0, -1) with SIGNAL_REG and fixed a warning (MessageRecord ↵Filippos Karapetis
is a struct) svn-id: r44865
2009-10-10SCI: kMessage() rewriteWalter van Niftrik
svn-id: r44860
2009-10-07SCI: Turn lookup_node & lookup_list into SegManager::lookupNode & ↵Max Horn
SegManager::lookupList svn-id: r44769
2009-10-07Fixed a potential buffer overflow in kFormat, which occurs in the "About" ↵Filippos Karapetis
screen in KQ4 svn-id: r44738
2009-10-04SCI: Rename EngineState::segMan to _segManMax Horn
svn-id: r44629
2009-10-04SCI: kReadNumber crash fix for lsl1Martin Kiewitz
svn-id: r44597
2009-10-01SCI: cleanupWillem Jan Palenstijn
svn-id: r44528
2009-10-01Rewrote weird-looking code, which might lead to undefined behavior, ↵Filippos Karapetis
according to GNU svn-id: r44523
2009-09-30Fixed regression in r44417, found by waltervn. The score in KQ1SCI should be ↵Filippos Karapetis
diplayed correctly again svn-id: r44490
2009-09-30Fixed a crash when starting KQ1SCIFilippos Karapetis
svn-id: r44484
2009-09-30- Moved the list of synonyms and parser nodes inside the vocabulary classFilippos Karapetis
- Added a convenience member inside the EngineState struct to access the instance of the Vocabulary class svn-id: r44481
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-27Simplify kFormat slightlyMax Horn
svn-id: r44417
2009-09-27SCI: clean up kStrAtWillem Jan Palenstijn
svn-id: r44394
2009-09-27SCI: Major string handling update.Willem Jan Palenstijn
All string access to segments should now work with both raw and non-raw (reg_t) segments, using the new utility functions in segMan. There will likely be regressions. svn-id: r44388
2009-09-26SCI: Fix regression in r44081 breaking walking in QfG2Willem Jan Palenstijn
svn-id: r44383
2009-09-22SCI: Add some FIXMEs, and print warning if accessing a raw segment as ↵Max Horn
non-raw or vice versa svn-id: r44245
2009-09-17SCI: Change SegmentId from int to uint16; consistently use segment 0 to ↵Max Horn
indicate an invalid segment svn-id: r44131
2009-09-17SCI: Rename MemObject -> SegmentObjMax Horn
svn-id: r44130
2009-09-16SCI: Rename Script class members, change Script from struct to classMax Horn
svn-id: r44126
2009-09-14SCI: Misc cleanupMax Horn
svn-id: r44093
2009-09-14SCI: Rename SegManager::kernelDeref*() methods to SegManager::deref*()Max Horn
svn-id: r44083
2009-09-14SCI: kernelDeref*() functions are now seSegmentManager methodsMax Horn
svn-id: r44082
2009-09-14SCI: Merge kernelDerefCharPtr and kernelDerefString and change it from a ↵Max Horn
macro to a function svn-id: r44081
2009-09-06SCI: Cleanup for some SegManager internalsMax 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-06SCI: Rename resManager -> resMan; segManager -> segManMax Horn
svn-id: r43980
2009-09-02Some renaming:Filippos Karapetis
getresourceManager -> getResourceManger resourceManager -> resMan segmentManager ->segMan svn-id: r43908
2009-09-02SCI: Renamed kernel_dereference_* to kernelDeref*, and added kernelDerefStringMax Horn
svn-id: r43907
2009-09-02SCI: 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 parametersFilippos 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 functionsFilippos 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-10SCI: Improved multilanguage support for SCI1 and SCI1.1.Walter van Niftrik
svn-id: r43217
2009-07-11Moved the kernel and the vocabulary outside of the engine state (they're ↵Filippos Karapetis
static data, which never changes during a game) svn-id: r42398
2009-07-06Replaced sciprintf() calls with printf, DebugPrintf, warning and error callsFilippos Karapetis
svn-id: r42167
2009-06-07SCI: Moved resource36 handling into resource manager.Walter van Niftrik
svn-id: r41349
2009-06-07Replaced/removed KP_UINT, KP_SINT, SKPV and UKPV as well as the ↵Filippos Karapetis
VIEW_PRIORITY and PRIORITY_BAND_FIRST wrappers svn-id: r41338
2009-06-04SCI: Message: Added support for escape sequences.Walter van Niftrik
svn-id: r41169