aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
AgeCommit message (Collapse)Author
2010-11-01ENGINES: Replace many printfs by warning/debug/debugNMax Horn
svn-id: r54031
2010-11-01COMMON: Rename String::printf() to String::format()Max Horn
This is a first step towards getting rid of all uses of regular printf, fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase. The name format() reflects the purpose of the function, and parallels String.format() in Java, boost::format, and others. svn-id: r54004
2010-11-01ENGINES: Remove some 'using' statementsMax Horn
svn-id: r54001
2010-10-29SCUMM: Switch to the new SaveStateDescriptor::setPlayTime.Johannes Schickel
svn-id: r53923
2010-10-27ENGINE: Rename resetTotalPlayTime to setTotalPlayTime.Johannes Schickel
I also extended the comment for it to show two possible use cases. svn-id: r53895
2010-10-27ENGINE: Generalize SCUMM play time counting and move it into Engine.Johannes Schickel
This implements Max's idea on -devel ("Re: [Scummvm-devel] ATTN Engine authors: Advanced engine features") from 27.10.2010 on 11:12PM CEST. Unlike the SCUMM implementation it stores the play time as ms instead of s. The SCUMM engine was adapted to use this instead to reduce code duplication. svn-id: r53892
2010-10-26SCUMM: Add alternative version of patch #3094717 - MMC64: save actor state.Travis Howell
svn-id: r53842
2010-10-25SCUMM: Move shared code of Player_V2 & Player_V2CMS to new common base classMax Horn
svn-id: r53830
2010-10-25SCUMM: Move class Player_V2CMS to its own header fileMax Horn
svn-id: r53829
2010-10-25SCUMM: Add patch #3094711 - MMC64: Correct position of plant actor.Travis Howell
svn-id: r53814
2010-10-25SCUMM: Add patch #3089936 - MMC64: Parcel/Tombstone/Verb Fix.Travis Howell
svn-id: r53807
2010-10-25SCUMM: Add patch #3093541 - MMC64: Actor Walk / Object Fix.Travis Howell
svn-id: r53806
2010-10-25SCUMM: Add patch #3093061 - MMC64: sentence highlighting.Travis Howell
svn-id: r53805
2010-10-25SCUMM: Add patch #3093051 - MMC64: Ladder facing patch.Travis Howell
svn-id: r53799
2010-10-25SCUMM: Add patch #3093048 - MMC64: German actor names.Travis Howell
svn-id: r53796
2010-10-25SCUMM: Add patch #3093057 - MMC64: sentence/inventory color.Travis Howell
svn-id: r53785
2010-10-24ALL: code formatting fixesMax Horn
svn-id: r53764
2010-10-24SCUMM: Turn global g_cmsEmu into a member var of Player_V2CMSMax Horn
svn-id: r53763
2010-10-24ALL: Fix various typos (patch #3093266)Max Horn
svn-id: r53762
2010-10-23SCUMM: Skip endian conversion on little endian systems (instead of assigning ↵Max Horn
values back to themselves) svn-id: r53739
2010-10-23ALL: Fix indention (whitespaces -> tabs)Max Horn
svn-id: r53738
2010-10-23SCUMM: Disable multiplayer option in Backyard Baseball 2001.Travis Howell
svn-id: r53731
2010-10-23SCUMM: Add workaround to allow saved games to be shared between Macintosh ↵Travis Howell
and Windows versions of Backyard Baseball 2001. svn-id: r53729
2010-10-23SCUMM: Fix buffer overflow, that was causing crashes when saving in Backyard ↵Travis Howell
Baseball 2001/2003. svn-id: r53726
2010-10-23SCUMM/FM-TOWNS JAPANESE: fix font drawing in MI1 introFlorian Kagerer
svn-id: r53725
2010-10-22SCUMM/FM-TOWNS JAPANESE: fix another font spacing issueFlorian Kagerer
(fixes MI1 character talk text) svn-id: r53704
2010-10-21SCUMM: Remove redundant call to checkArrayLimitsMax Horn
svn-id: r53672
2010-10-21SCUMM: Document ScummEngine_v90he::sortArrayMax Horn
svn-id: r53671
2010-10-21SCUMM: Fix bug #2984000 - SPYFOX3 (French): Crash when using fingernail machine.Travis Howell
svn-id: r53669
2010-10-21SCUMM: Correct a copy and paste error in ↵Travis Howell
compareByteArray/compareByteArrayReverse code. Thanks to clone2727 for noticng this error. svn-id: r53663
2010-10-21SCUMM: Revert revision 45302, which caused regressions when random team is ↵Travis Howell
selected in Backyard Football. svn-id: r53662
2010-10-20SCUMM/FM-TOWNS: minor graphics fixFlorian Kagerer
This fixes a graphics glitch that occured when leaving the Scumm Bar in MI1 for the first time (before the cut scene with LeChuck). svn-id: r53645
2010-10-20SCUMM: Have o6_getRandomNumber() use the absolute value of the argumentMatthew Hoops
The Backyard Baseball series calls the function with negative numbers, but expects a positive result. The games are now actually playable. Thanks to Kirben for assistance in tracking this bug down. svn-id: r53630
2010-10-19SCUMM/FM-TOWNS JAPANESE: minor fix in last commitFlorian Kagerer
svn-id: r53617
2010-10-19SCUMM/FM-TOWNS JAPANESE: implement flipped textFlorian Kagerer
(used in the MI1 circus scene after Guybrush gets shot out of the cannon) svn-id: r53616
2010-10-18SCUMM/FM-TOWNS JAPANESE: fix font spacing issuesFlorian Kagerer
(improves MI1 intro) svn-id: r53597
2010-10-18SCUMM: Silence MSVC 2010 code analysis warningMax Horn
svn-id: r53582
2010-10-18SCUMM: INSANE: fix a long standing bug discovered by static code analysisEugene Sandulenko
svn-id: r53581
2010-10-18SCUMM: Fix out of bound access (discovered by Code Analysis in MS VS2010; ↵Max Horn
thanks to aquadran for helping verify the fix) svn-id: r53575
2010-10-18SCUMM: Simplify SO_LOAD_STRING codeMax Horn
svn-id: r53574
2010-10-18SCUMM: Add paranoia checkMax Horn
svn-id: r53573
2010-10-18SCUMM: Fix potential bug in ScummEngine::resStrLen.Max Horn
In particular, it might happen that ScummEngine::resStrLen is called while the _scriptPointer is stale. In that case, it would be working with the stale pointer. If the code calling it then uses fetchScript*() methods to read the string whose length was just computed, then it would read potentially *different* data (e.g. copyScriptString or loadPtrToResource could have been affected). I am not sure if this actually could have caused bugs somewhere; it might even be provable that a script relocation cannot happen in all places that invoke resStrLen. But for now it's much easier to make the code safe than to verify that theory ;). Also simplified some related code. svn-id: r53572
2010-10-18SCUMM: Move common code from ScummEngine::fetchScript* to new method.Max Horn
The new method is called refreshScriptPointer(). Also renamed getScriptEntryPoint() to resetScriptPointer() in an attempt to highlight both the similarity and difference between the two. svn-id: r53571
2010-10-18SCUMM: Fix parts of bug #3087898 (SCUMM: Code analysis warnings)Max Horn
svn-id: r53567
2010-10-18SCUMM: Check the sound channel is valid, before checking the sound channel.Travis Howell
svn-id: r53562
2010-10-18SCUMM: Check the sound channel is valid, before checking the sound channel.Travis Howell
svn-id: r53561
2010-10-18SCUMM: Correct incorrect demo entry for Backyard Football 2002.Travis Howell
svn-id: r53560
2010-10-17SCUMM/FM-TOWNS: more improvements to japanese font drawingFlorian Kagerer
(MI1 intro is still not right) svn-id: r53558
2010-10-17SCUMM: Fix Macintosh demo of Putt-Putt Joins the Parade.Travis Howell
svn-id: r53557
2010-10-17SCUMM/FM-TOWNS: more improvements to japanese font drawingFlorian Kagerer
- made use of LordHotos graphics/sjis code to reduce code duplication - japanese mode for version 3 and 5 works fine now with few exceptions (some line spacing glitches in MI1 intro etc.) svn-id: r53554