aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kstring.cpp
AgeCommit message (Collapse)Author
2010-11-21SCI: Adapted kArray/kString to use the new heuristic for late SCI2.1/SCI3 ↵Filippos Karapetis
games, and updated their subops accordingly svn-id: r54399
2010-11-19Some subfunctions changed positions in SCI3 kString. WIP.Lars Skovlund
And with this, LSL7 starts up. Yeah, baby! svn-id: r54374
2010-11-18SCI: Added a stub for a new subop in kString, and disabled ↵Filippos Karapetis
trackOriginAndFindWorkaround() for SCI3 games for now svn-id: r54352
2010-09-11SCI: In kFormat, handle arguments pointing to text resource 0 correctly.Lars Skovlund
Fixes Colonel's Bequest inventory formatting. svn-id: r52676
2010-09-09SCI: Implemented the kPrintDebug SCI2.1 kernel function, used in Shivers (demo)Filippos Karapetis
svn-id: r52665
2010-09-09SCI: Support push and pop subfunctions in kMessage()Lars Skovlund
Glossary seems to work now. svn-id: r52654
2010-07-29SCI: Silenced warning when exiting in LSL6 (bug report #3035533), and ↵Filippos Karapetis
commented out a related unused variable in kSetQuitStr svn-id: r51456
2010-07-27SCI: Better fix for bug #3035058 - ECOQUEST demo: Missing subtitlesMatthew Hoops
The demo really uses kGetMessage and not kMessage. We now detect which version of the message function is used. Thanks to Walter for pointing this out. svn-id: r51384
2010-07-27SCI: Fix bug #3035058 - ECOQUEST demo: Missing subtitlesMatthew Hoops
The demo uses a special version of kMessage to get its messages. svn-id: r51376
2010-07-21SCI: Moved the SCI32 kernel functions out of kernel32.cpp and into their ↵Filippos Karapetis
respective files svn-id: r51108
2010-06-24SCI: Make kStrAt clear segment when writing charactersWillem Jan Palenstijn
This is necessary since the uninitialized value detection from r50211, and is analogous to seg_manager.cpp's setChar. (Triggered in LSL3 age verification.) svn-id: r50234
2010-06-20SCI: dont display string set by kSetQuitStrMartin Kiewitz
svn-id: r50090
2010-06-18SCI: Rewrap some overlong commentsMax Horn
svn-id: r50012
2010-05-31SCI: break on anything, warn on anything but spaces in kReadNumberMartin Kiewitz
svn-id: r49355
2010-05-31SCI: added TODO at kReadNumber space codeMartin Kiewitz
svn-id: r49348
2010-05-31SCI: skip spaces in kReadNumber - this happens in lsl3 introMartin Kiewitz
svn-id: r49345
2010-05-31SCI: when getting invalid chars in kReadNumber don't error() out, but create ↵Martin Kiewitz
a warning - we get invalid chars in the intro of lsl5, cause currently unknown svn-id: r49344
2010-05-29Mass 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-26SCI: fixing kReadNumber to behave like in sierra sci (non standard atoi ↵Martin Kiewitz
implementation) - fixes big door not unlocking in sq4 svn-id: r49250
2010-05-18- Moved kernel_lookup_text inside the Kernel classFilippos Karapetis
- Added a pointer to the segment manager from within the Kernel class, thus simplifying the calls to it svn-id: r49076
2010-03-22Patch #2973290: Semicolon cleanupMax Horn
svn-id: r48359
2010-02-15SCI32 reorders the REF* subops in kMessage; fixes GK1 conversations.Matthew Hoops
svn-id: r48066
2010-02-13SCI: Move language related code from EngineState to SciEngineMax Horn
svn-id: r48052
2010-02-13SCI: Get rid of EngineState::resManMax Horn
svn-id: r48048
2010-02-07SCI1 Mac games can call kGetFarText with a NULL destination, so we need to ↵Matthew Hoops
allocate the memory. King's Quest V Mac is now playable. svn-id: r47950
2010-02-05SCI: Add a 'SELECTOR' macroMax Horn
svn-id: r47918
2010-01-30SCI: Remove extra '\n's in debugC messagesWillem Jan Palenstijn
svn-id: r47707
2010-01-30Implement kString(Printf) and resizing of SCI32 strings in kFormat().Matthew Hoops
svn-id: r47697
2010-01-30Added support for String types to kFormat (seems to work but needs testing...)Filippos Karapetis
svn-id: r47694
2010-01-26SCI: Add string support for odd-offset pointers into reg_t-based segments.Walter van Niftrik
svn-id: r47572
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
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