aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/script.cpp
AgeCommit message (Collapse)Author
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2011-10-04SAGA: Fixed script bug #3358007 - "IHNM: Freeze when exiting from the motor ↵Filippos Karapetis
room's right door" Thanks to digital for finding the actual script bug
2011-06-02SAGA: Replace snprintf() usage with Common::String::format()D G Turner
Safer and less portability issues.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-12COMMON: Replace MKID_BE by MKTAGMax Horn
MKID_BE relied on unspecified behavior of the C++ compiler, and as such was always a bit unsafe. The new MKTAG macro is slightly less elegant, but does no longer depend on the behavior of the compiler. Inspired by FFmpeg, which has an almost identical macro.
2010-10-24SAGA: replace Resource:loadResource malloc with ByteArray classAndrew Kurushin
svn-id: r53779
2010-10-23SAGA: replace Events malloc base linked list with Common::ListAndrew Kurushin
svn-id: r53751
2010-10-22SAGA: replace Actor::_pathCell, Anim::*, Converse::text, IsoMap::*, ↵Andrew Kurushin
Music::_songTable, ObjectMap::*, PalAnim::*, Scene::sceneLut, SndRes::_fxTable* malloc based arrays with Common::Array implementation add ByteArray type fix debug Tile Hittest frame drawing debug 0x%x => 0x%X svn-id: r53719
2010-10-21SAGA: fix gcc warnAndrew Kurushin
svn-id: r53679
2010-10-21SAGA: replace Script and Thread "::*alloc" & "::free" with Common::ArrayAndrew Kurushin
svn-id: r53678
2010-10-20SAGA: replace StringTable "::realloc" with Common::Array; reduce amount of ↵Andrew Kurushin
memory for every string table svn-id: r53651
2010-10-12JANITORIAL: Cleanup (mostly whitespace)Torbjörn Andersson
svn-id: r53161
2010-07-16Removed unused variable. I believe thread->_instructionOffset serves the sameTorbjörn Andersson
purpose that 'addr' was inteded to. svn-id: r50951
2010-05-16Added automatic detection for the non-interactive ITE demosFilippos Karapetis
svn-id: r49046
2010-02-26Fixed the music in some Mac versions of ITE and disabled some unused code ↵Filippos Karapetis
for the original DOS demo of ITE svn-id: r48139
2009-12-04refactor resource module:Andrew Kurushin
- struct ResourceContext => class ResourceContext - replace "*alloc","free" with array templates - simplify createContexts routines svn-id: r46254
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-05-24Strip trailing whitespaces in the whole code base.Johannes Schickel
svn-id: r40867
2009-04-11SAGA: changed _threadList back to a list of ScriptThread objs, instead of ↵Max Horn
ptrs to instances. svn-id: r39944
2009-04-11Plugged another memory leak introduced with rev #39934Filippos Karapetis
svn-id: r39936
2009-02-20Fixed a nasty regression from the script system rewrite (commit #35670), ↵Filippos Karapetis
which will cause crashes under certain conditions, and probably makes SAGA games non-completable. When a script thread is waiting for another thread, the current instruction offset should not be modified. The thread processing function would incorrectly continue in some special cases, and would incorrectly alter the current instruction offset. This becomes apparent in some special cases only, which made it hard to spot - plus, SAGA games have not been tested for 0.13.0, so there weren't any reports for this. This change SHOULD go to the 0.13.0 branch, but we've already tagged... svn-id: r38581
2009-02-03Removed unused codeFilippos Karapetis
svn-id: r36210
2009-01-02Split the script module into two parts, for SAGA1 and SAGA2 gamesFilippos Karapetis
svn-id: r35689
2009-01-02Wrapped more engine-specific code around appropriate ifdefsFilippos Karapetis
svn-id: r35679
2009-01-02- Split the IHNM script functions into a different fileFilippos Karapetis
- Added two new defines, ENABLE_IHNM and ENABLE_SAGA2 (enabled by default), which can be used to remove the parts of the SAGA engine which are specific to IHNM and SAGA 2 games. Hopefully, this will reduce the size of the engine even more for platforms with little memory (e.g. the Nintendo DS) svn-id: r35672
2009-01-02Rewrote the SAGA script system to use an opcode table, like in other enginesFilippos Karapetis
svn-id: r35670
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-12-25SAGA2 HRS resources should be loaded correctly nowFilippos Karapetis
svn-id: r35539
2008-12-25- Implemented the SAGA2 resource loaderFilippos Karapetis
- Some cleanup svn-id: r35536
2008-12-22- Split the SAGA resource manager in 3 different ones, depending on the ↵Filippos Karapetis
resource type (RSC for ITE, RES for IHNM and HRS for DINO/FTA2). The SAGA 2 HRS resource manager is still a stub - Added detection for the voice file of FTA2 svn-id: r35484
2008-12-21Added some more stubs for FTA2Filippos Karapetis
svn-id: r35475
2008-12-21Cleaned up the mess with game IDs and game types: removed game types, ↵Filippos Karapetis
reduced the game IDs and added game features where necessary svn-id: r35467
2008-06-12SAGA: Fixed memory leaks in the SAGA engineChristopher Page
svn-id: r32673
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664
2008-01-05Fix to remove a tab character from the GPL headerPaul Gilbert
svn-id: r30238
2007-11-12Added a workaround for a problematic object in Gorrister's chapter (Edna's key)Filippos Karapetis
svn-id: r29486
2007-11-11Don't draw objects with negative x/y values. Now, "ghost" objects are no ↵Filippos Karapetis
longer created in the top left corner of the screen when picked up/used. The creation of such ghost objects is a script bug which exists in the original interpreter of IHNM as well. Also, removed a relevant workaround for the note in the first screen of Gorrister's chapter, as it's no longer needed svn-id: r29477
2007-11-09Added a workaround for a bug in the original game scripts of IHNM with Edna, ↵Filippos Karapetis
when the knife is used with her. Fixes bug #1826871 - "IHNM: Edna's got two hearts but loves to be on the hook" svn-id: r29461
2007-11-01It's now possible to exit the screens with Gorrister's heart in IHNM ↵Filippos Karapetis
normally (i.e by walking to the exit, not using it) - like the original svn-id: r29349
2007-10-27Added a workaround for an incorrect hitzone in IHNM, (Gorrister's chapter). ↵Filippos Karapetis
Now, the graffiti to the left in the toilet screen can be examined correctly. Also, performed some clean-up svn-id: r29264
2007-10-22Added a workaround for a script bug in IHNM, which occurs in the original as ↵Filippos Karapetis
well. An invisible note will no longer be created in the top left corner of the screen, when the note in the first screen of Gorrister's chapter is read svn-id: r29247
2007-09-30IHNM does not have excuse textsFilippos Karapetis
svn-id: r29145
2007-09-23Moved MemoryStreamEndian from Saga to Common.Eugene Sandulenko
svn-id: r29038
2007-09-22Added a workaround for a bug with Gorrister's heart, which exists in the ↵Filippos Karapetis
original game scripts of IHNM svn-id: r29024
2007-09-16Script modules are now unloaded correctly when changing chapters in IHNMFilippos Karapetis
svn-id: r28918
2007-09-15Palette fade in when a cutaway starts in IHNM is working now. Also, the fade ↵Filippos Karapetis
mode is properly set in all cases where palette fadeout is used. Some code formatting svn-id: r28904
2007-09-15The right button verb in IHNM will no longer be invalid for some hitzones ↵Filippos Karapetis
(e.g. "Quit game the door") svn-id: r28903
2007-08-25Added a note on mouse right button action for IHNMFilippos Karapetis
svn-id: r28721
2007-08-17Removed an obsolete TODOFilippos Karapetis
svn-id: r28642
2007-08-01IHNM and ITE: ScummVM will no longer crash when loading games from the ↵Filippos Karapetis
command line svn-id: r28394