mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 18:31:37 +00:00
baa31cd83d
https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk ........ r42578 | dreammaster | 2009-07-18 11:22:43 +1000 (Sat, 18 Jul 2009) | 1 line Minor tweak to prevent mouse clicks that close a user wait message also being further interpreted as a user walk destination ........ r42587 | wjpalenstijn | 2009-07-18 22:51:12 +1000 (Sat, 18 Jul 2009) | 1 line SCI: Fix stepping in debugger ........ r42588 | drmccoy | 2009-07-18 23:05:36 +1000 (Sat, 18 Jul 2009) | 1 line Adding a workaround for the guard house card game "game over" screen in Woodruff ........ r42589 | wjpalenstijn | 2009-07-18 23:05:39 +1000 (Sat, 18 Jul 2009) | 1 line SCI: don't leave debugger after bt ........ r42590 | Kirben | 2009-07-18 23:39:21 +1000 (Sat, 18 Jul 2009) | 1 line Add workaround for bug #1668393 - ZAK FM-TOWNS: Crash when entering Hostel from outside. ........ r42591 | fingolfin | 2009-07-19 01:11:19 +1000 (Sun, 19 Jul 2009) | 1 line AGOS: Fixed backspace under OS X in Personal Nightmare ........ r42592 | fingolfin | 2009-07-19 01:12:54 +1000 (Sun, 19 Jul 2009) | 1 line AGOS: Get rid of one setjmp in PN code (needs testing) ........ r42593 | fingolfin | 2009-07-19 01:15:26 +1000 (Sun, 19 Jul 2009) | 1 line AGOS: Removed second setjmp in PN code (untested!) ........ r42596 | cyx | 2009-07-19 07:26:44 +1000 (Sun, 19 Jul 2009) | 2 lines add "-IQ" suffix test to SO_LOAD_STRING (same as SO_SAVE_STRING) ; fixes french version of atlantis ........ r42597 | wjpalenstijn | 2009-07-19 08:17:56 +1000 (Sun, 19 Jul 2009) | 1 line Fix crash in tab completion if one command is a prefix of another. ........ r42598 | wjpalenstijn | 2009-07-19 08:19:07 +1000 (Sun, 19 Jul 2009) | 1 line SCI: Fix disasm_addr option parsing ........ r42599 | wjpalenstijn | 2009-07-19 08:46:07 +1000 (Sun, 19 Jul 2009) | 1 line SCI: Fix breakpoints ........ r42606 | Kirben | 2009-07-19 19:09:56 +1000 (Sun, 19 Jul 2009) | 1 line Add patch #2823590 - Fix music crashes in Waxworks (PC). ........ r42608 | Kirben | 2009-07-19 19:13:17 +1000 (Sun, 19 Jul 2009) | 1 line Update Waxworks. ........ r42609 | wjpalenstijn | 2009-07-19 20:50:14 +1000 (Sun, 19 Jul 2009) | 1 line SCI: check shouldQuit() in main loop ........ r42610 | cyx | 2009-07-19 21:07:17 +1000 (Sun, 19 Jul 2009) | 2 lines fix bug #2597980 - TUCKER: Sprite glitch ........ r42611 | dreammaster | 2009-07-19 22:52:19 +1000 (Sun, 19 Jul 2009) | 1 line Added the GUIO_NOSFX and GUIO_NOMUSIC flags to the first Discworld 1 demo entry ........ r42614 | Kirben | 2009-07-20 00:03:35 +1000 (Mon, 20 Jul 2009) | 1 line Change generic save game name. ........ r42615 | knakos | 2009-07-20 00:46:11 +1000 (Mon, 20 Jul 2009) | 1 line remove dead code leftover ........ r42619 | knakos | 2009-07-20 02:10:55 +1000 (Mon, 20 Jul 2009) | 1 line whoops, fix non-arm build (why? :-) ) ........ r42623 | wjpalenstijn | 2009-07-20 07:06:25 +1000 (Mon, 20 Jul 2009) | 1 line Fix compilation with USE_CONSOLE = 0 ........ r42624 | fingolfin | 2009-07-20 15:02:17 +1000 (Mon, 20 Jul 2009) | 1 line AGOS: Fixed badload(); some whitespace cleanup ........ r42625 | sev | 2009-07-20 18:31:40 +1000 (Mon, 20 Jul 2009) | 3 lines Moved new ports section to more appropriate place. And force buildbot to recompile :) ........ r42626 | dreammaster | 2009-07-20 19:19:27 +1000 (Mon, 20 Jul 2009) | 1 line Bugfix for hangs on scene changes in Discworld 1 after having loaded a savegame from the GMM when the title screens are displayed ........ r42632 | wjpalenstijn | 2009-07-21 06:55:28 +1000 (Tue, 21 Jul 2009) | 4 lines Make ScummFile::eos() consistent with Stream::eos(). Remove usage of ioFailed from SCUMM engine. Fix reading up to the end of a SCUMM SubFile. This hopefully fixes #2820957. ........ r42633 | mthreepwood | 2009-07-21 06:59:35 +1000 (Tue, 21 Jul 2009) | 1 line Fixing bug #2823854: Mickey's space adventure crash. There's one too many space characters in a string which causes it to be drawn off the screen. ........ r42634 | sev | 2009-07-21 08:15:37 +1000 (Tue, 21 Jul 2009) | 2 lines Proper implementation of microscope puzzle. ........ r42635 | lordhoto | 2009-07-21 08:26:41 +1000 (Tue, 21 Jul 2009) | 2 lines Fix gcc warning (hopefully this is correct). ........ r42636 | Kirben | 2009-07-21 17:02:18 +1000 (Tue, 21 Jul 2009) | 1 line Update GUI flags for AGOS game engine. ........ r42637 | wjpalenstijn | 2009-07-21 19:39:58 +1000 (Tue, 21 Jul 2009) | 1 line Use a BufferedReadStream to buffer ArjFile's input to reduce memory usage ........ r42638 | Kirben | 2009-07-21 20:37:58 +1000 (Tue, 21 Jul 2009) | 1 line Fix fade effects in Waxworks. ........ r42639 | Kirben | 2009-07-21 20:48:32 +1000 (Tue, 21 Jul 2009) | 1 line Fix bug #2823818 - GUI: unable to select subtitles and speech for Simon 2. ........ r42640 | drmccoy | 2009-07-21 21:26:31 +1000 (Tue, 21 Jul 2009) | 1 line Making some static const uint32s public, older GCC versions don't seem to like nested classes to access their parents' protected members ........ r42641 | drmccoy | 2009-07-21 21:58:58 +1000 (Tue, 21 Jul 2009) | 1 line Fixing "Game "hangs" after first level" (bug #2824414) ........ r42642 | drmccoy | 2009-07-21 22:14:36 +1000 (Tue, 21 Jul 2009) | 1 line Fixing the text input in Gob1 (the loading code wasn't printed as you typed anymore) ........ r42645 | robinwatts | 2009-07-22 05:39:24 +1000 (Wed, 22 Jul 2009) | 4 lines Add ARM code implementation of Scaler2x, and enable it for the WinCE port. ........ r42654 | Kirben | 2009-07-22 19:52:44 +1000 (Wed, 22 Jul 2009) | 1 line Simplify fade code. ........ r42655 | Kirben | 2009-07-22 20:23:58 +1000 (Wed, 22 Jul 2009) | 1 line Change the default target to CD version, for games which offer floppy and CD versions. So all GUI options are still available in fan translations. ........ r42656 | Kirben | 2009-07-22 20:32:35 +1000 (Wed, 22 Jul 2009) | 1 line Update video script debug table for Waxworks. ........ r42658 | sev | 2009-07-22 21:48:51 +1000 (Wed, 22 Jul 2009) | 2 lines Fix bug #2823762: "AGI: PQ1 All function keys are broken after restart" ........ r42659 | sev | 2009-07-22 22:24:55 +1000 (Wed, 22 Jul 2009) | 2 lines Fix bug #2823759: "AGI: PQ1 help not showing the first time you press F1" ........ r42660 | sev | 2009-07-22 22:36:08 +1000 (Wed, 22 Jul 2009) | 2 lines Mention microscope puzzle improvement in T7G ........ r42661 | lordhoto | 2009-07-22 22:38:34 +1000 (Wed, 22 Jul 2009) | 1 line Since Kyra PC98 version is japanese only don't mention it explicitly. ........ r42662 | sev | 2009-07-23 01:55:33 +1000 (Thu, 23 Jul 2009) | 2 lines Move functions from agi.cpp to more appropriate files. ........ r42663 | sev | 2009-07-23 02:26:53 +1000 (Thu, 23 Jul 2009) | 2 lines Fix bug #2798797: "AGI: larry 1 doesn't restart after dying" ........ r42664 | sev | 2009-07-23 05:25:53 +1000 (Thu, 23 Jul 2009) | 7 lines Fix bug #1745396: "MI: Saved game from the credits sequence fails to load". Now we specifically disallow saves in room 0 for all v4+ games. Original has exactly this check in all versions, and such games are impossible to load. Still the problem is not resolved for v0-v3 and HE games. ........ r42668 | sev | 2009-07-23 06:37:48 +1000 (Thu, 23 Jul 2009) | 2 lines Fix bug #2825252: "GUI: Low Res Bugs" ........ r42671 | Kirben | 2009-07-23 15:48:20 +1000 (Thu, 23 Jul 2009) | 1 line Simplify the code to check whether loading or saving a game is possible. ........ r42672 | Kirben | 2009-07-23 15:57:00 +1000 (Thu, 23 Jul 2009) | 1 line Simplify the code to check whether loading or saving a game is possible. ........ r42673 | Kirben | 2009-07-23 17:49:28 +1000 (Thu, 23 Jul 2009) | 1 line Correct error in revision 26678. ........ r42674 | Kirben | 2009-07-23 20:31:06 +1000 (Thu, 23 Jul 2009) | 1 line Remove keyboard support for mouse buttons, since it interferes with load/save scripts in HE games and input scripts in others games (COMI, FT). It isn't much use anyway, since we dropped support for cursor movement via keyboard long ago. ........ r42675 | Kirben | 2009-07-23 20:33:13 +1000 (Thu, 23 Jul 2009) | 1 line Fix bug #1726909 - HE Games: Glitches after loading saved games, by restircting HE games to their original load/save interface. ........ r42676 | dreammaster | 2009-07-23 20:49:30 +1000 (Thu, 23 Jul 2009) | 1 line Bugfix for player blocking room entrance causing NPCs trying to enter getting an excessive number of action entries ........ r42677 | Kirben | 2009-07-23 20:54:12 +1000 (Thu, 23 Jul 2009) | 1 line Only autosave in supported scenes. ........ r42679 | drmccoy | 2009-07-24 05:50:13 +1000 (Fri, 24 Jul 2009) | 1 line Fixing a bug in the V4 save file handler, produced by a "neat" feature in Woodruff: The saves remember their position within the list and use that information to load the "correct" screen properties, making it impossible to load reordered saves correctly -.- ........ r42681 | Kirben | 2009-07-24 14:59:21 +1000 (Fri, 24 Jul 2009) | 1 line Bear Stormin' is the full mini game, and not a demo. ........ r42685 | Kirben | 2009-07-24 15:20:44 +1000 (Fri, 24 Jul 2009) | 1 line Fix cursor position, when entering a save game name in HE games. ........ r42690 | drmccoy | 2009-07-24 20:45:25 +1000 (Fri, 24 Jul 2009) | 1 line Adding transparency for VMD video block type 2, fixing bug #2037158 ("n-Game animation shifted(?)"). The problem was that the animation in question has an one pixel wide transparent bar on the left ........ r42693 | Kirben | 2009-07-24 22:28:53 +1000 (Fri, 24 Jul 2009) | 1 line Add workaround for bug #2826144 - SAM: Game hangs when talking to bigfoot guard. ........ r42695 | Kirben | 2009-07-24 23:30:26 +1000 (Fri, 24 Jul 2009) | 1 line Adjust workaround for bug #2826144, to use hard coded offset, that should be safe in all language versions. ........ r42696 | wjpalenstijn | 2009-07-25 04:58:15 +1000 (Sat, 25 Jul 2009) | 3 lines SAGA: Instead of trying to detect duplicate glyphs, simply generate duplicate outline glyphs. This should fix #2826697. ........ r42697 | eriktorbjorn | 2009-07-25 05:24:15 +1000 (Sat, 25 Jul 2009) | 2 lines Removed unused variable. ........ r42699 | sev | 2009-07-25 05:56:46 +1000 (Sat, 25 Jul 2009) | 2 lines This is 1.1.0svn ........ r42701 | sev | 2009-07-25 06:21:49 +1000 (Sat, 25 Jul 2009) | 2 lines re-enable SCI engine ........ r42704 | drmccoy | 2009-07-25 07:29:41 +1000 (Sat, 25 Jul 2009) | 1 line Adding support for ADPCM sound data (yet another IMA ADPCM variant). What we've called ADPCM before is more like DPCM ........ r42705 | drmccoy | 2009-07-25 07:31:00 +1000 (Sat, 25 Jul 2009) | 1 line Adding subtitle support to Woodruff ........ r42706 | drmccoy | 2009-07-25 07:31:58 +1000 (Sat, 25 Jul 2009) | 1 line Caching the subtitle font and color, because some don't assign those ........ r42707 | drmccoy | 2009-07-25 07:32:45 +1000 (Sat, 25 Jul 2009) | 1 line Calculating the number of data bytes per initial sound slice, because relying on the standard amount doesn't work for some videos ........ r42708 | drmccoy | 2009-07-25 07:33:22 +1000 (Sat, 25 Jul 2009) | 1 line Properly reading the video codec fourcc, in case we need other codecs in the future ........ r42709 | drmccoy | 2009-07-25 07:33:55 +1000 (Sat, 25 Jul 2009) | 1 line Adding ADL playback to the demoplayer ........ r42710 | drmccoy | 2009-07-25 07:34:17 +1000 (Sat, 25 Jul 2009) | 1 line Adding stubs for newer VMDs found in Addy 5 ........ r42711 | drmccoy | 2009-07-25 07:34:43 +1000 (Sat, 25 Jul 2009) | 1 line Added a method to easily dump resources to file ........ r42712 | drmccoy | 2009-07-25 07:35:06 +1000 (Sat, 25 Jul 2009) | 1 line Fixing bytes per pixel detection ........ r42713 | drmccoy | 2009-07-25 07:35:57 +1000 (Sat, 25 Jul 2009) | 1 line Renaming getAnchor() to getFrameCoords() ........ r42714 | drmccoy | 2009-07-25 07:36:16 +1000 (Sat, 25 Jul 2009) | 1 line Moving all implementations into the cpp ........ r42715 | drmccoy | 2009-07-25 07:36:42 +1000 (Sat, 25 Jul 2009) | 1 line CoktelVideo cleanup: Splitting up some IMD methods and removing the obsolete notifyPaused() ........ r42716 | drmccoy | 2009-07-25 07:36:59 +1000 (Sat, 25 Jul 2009) | 1 line Merging Map_v4 into Map_v2 ........ r42717 | lordhoto | 2009-07-25 10:58:44 +1000 (Sat, 25 Jul 2009) | 1 line Add new event dispatching API. ........ r42718 | lordhoto | 2009-07-25 10:59:03 +1000 (Sat, 25 Jul 2009) | 1 line Replace "EventProvider" class of the DefaultEventManager implementation with "Common::EventSource". ........ r42719 | lordhoto | 2009-07-25 10:59:18 +1000 (Sat, 25 Jul 2009) | 1 line Got rid of EventManger::artificialEventQueue. ........ r42720 | lordhoto | 2009-07-25 10:59:30 +1000 (Sat, 25 Jul 2009) | 1 line Add function "allowMapping" to EventSource, for testing whether the event source allows mapping (via the Keymapper for example.) ........ r42721 | lordhoto | 2009-07-25 10:59:39 +1000 (Sat, 25 Jul 2009) | 1 line Prevent EventMapper events from being mapped. ........ r42722 | lordhoto | 2009-07-25 10:59:53 +1000 (Sat, 25 Jul 2009) | 1 line Replaced "_artificialEventQueue" by an EventSource. ........ r42723 | lordhoto | 2009-07-25 11:00:12 +1000 (Sat, 25 Jul 2009) | 1 line Made DefaultEventManager a subclass of EventObserver. ........ r42724 | lordhoto | 2009-07-25 11:00:24 +1000 (Sat, 25 Jul 2009) | 2 lines - Add marco to easily access the EventDispatcher instance. - Add events.cpp to module.mk ........ r42725 | lordhoto | 2009-07-25 11:00:37 +1000 (Sat, 25 Jul 2009) | 1 line Change DefaultEventManager to use EventDispatcher. ........ r42726 | lordhoto | 2009-07-25 11:00:47 +1000 (Sat, 25 Jul 2009) | 1 line Moved ArtificialEventSource to common/events.h. ........ r42727 | lordhoto | 2009-07-25 11:01:05 +1000 (Sat, 25 Jul 2009) | 2 lines - Adapt DefaultEventManager to use Common::ArtificialEventSource - Adapt Keymapper to implement EventMapper interface ........ r42728 | lordhoto | 2009-07-25 11:01:22 +1000 (Sat, 25 Jul 2009) | 2 lines - EventDispatcher is no longer a singleton. - Add "getEventDispatcher" method to EventManager. ........ r42729 | lordhoto | 2009-07-25 11:01:41 +1000 (Sat, 25 Jul 2009) | 1 line Add enum which marks global priorites of the EventManager event dispatcher. ........ r42736 | Kirben | 2009-07-25 15:39:57 +1000 (Sat, 25 Jul 2009) | 1 line Add patch #2816140 - MM C64 Costume Animation. ........ r42737 | Kirben | 2009-07-25 16:27:41 +1000 (Sat, 25 Jul 2009) | 1 line Add patch #2821100 - MM C64 Objects / Verb fixes, with minor clean up applied. ........ r42738 | Kirben | 2009-07-25 16:36:41 +1000 (Sat, 25 Jul 2009) | 1 line Update credits. ........ r42739 | eriktorbjorn | 2009-07-25 16:55:28 +1000 (Sat, 25 Jul 2009) | 2 lines Fixed GCC warnings. ........ r42740 | Kirben | 2009-07-25 17:17:37 +1000 (Sat, 25 Jul 2009) | 1 line Whitespace changes. ........ r42742 | fingolfin | 2009-07-25 19:36:16 +1000 (Sat, 25 Jul 2009) | 1 line Whitespace fixes ........ r42743 | wjpalenstijn | 2009-07-25 20:25:57 +1000 (Sat, 25 Jul 2009) | 1 line Add Common::String::printf to format a string ........ r42744 | wjpalenstijn | 2009-07-25 20:26:17 +1000 (Sat, 25 Jul 2009) | 1 line Use new Common::String::printf ........ r42746 | sev | 2009-07-25 20:37:20 +1000 (Sat, 25 Jul 2009) | 2 lines Formatting ........ r42747 | joostp | 2009-07-25 22:28:45 +1000 (Sat, 25 Jul 2009) | 1 line fix unaligned writes ........ r42748 | joostp | 2009-07-25 22:41:46 +1000 (Sat, 25 Jul 2009) | 1 line remove implicit SoundDigital::Sound ctor call, which is redundant because the required initialisation is done below -- this fixes a linker error with mipspro ........ r42751 | lordhoto | 2009-07-25 22:59:46 +1000 (Sat, 25 Jul 2009) | 1 line Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]). ........ r42752 | lordhoto | 2009-07-25 23:00:09 +1000 (Sat, 25 Jul 2009) | 1 line Strip trailing whitespaces. ........ r42753 | joostp | 2009-07-25 23:07:17 +1000 (Sat, 25 Jul 2009) | 1 line fix another aligned write ........ r42755 | eriktorbjorn | 2009-07-25 23:07:50 +1000 (Sat, 25 Jul 2009) | 2 lines Added word-wrapping to Drascula's conversation options. Fixes bug #2826607. ........ r42757 | eriktorbjorn | 2009-07-25 23:17:31 +1000 (Sat, 25 Jul 2009) | 2 lines Don't hog the CPU while waiting for the player to pick a conversation option. ........ r42759 | lordhoto | 2009-07-25 23:23:51 +1000 (Sat, 25 Jul 2009) | 1 line Fix gp2x port building. ........ r42761 | lordhoto | 2009-07-26 00:09:58 +1000 (Sun, 26 Jul 2009) | 1 line Yet another fix for the GP2x backend. ........ r42765 | lordhoto | 2009-07-26 01:31:11 +1000 (Sun, 26 Jul 2009) | 1 line Adept savegame name creation code to use Common::String::printf. ........ r42766 | drmccoy | 2009-07-26 02:07:29 +1000 (Sun, 26 Jul 2009) | 1 line Added a workaround to fix the Last Dynasty video greenness for now ........ r42767 | drmccoy | 2009-07-26 02:08:31 +1000 (Sun, 26 Jul 2009) | 1 line Moved the decision whether subtitles should be displayed, so that the broken subtitles in The Last Dynasty aren't shown ........ r42768 | drmccoy | 2009-07-26 02:09:19 +1000 (Sun, 26 Jul 2009) | 1 line Fixing Woodruff videos again after enabling block type 2 transparency ........ r42771 | lordhoto | 2009-07-26 02:34:01 +1000 (Sun, 26 Jul 2009) | 1 line Fix palette regression in Kyra2. ........ r42773 | lordhoto | 2009-07-26 02:37:25 +1000 (Sun, 26 Jul 2009) | 1 line Implement missing bits in KyraEngine_HoF::setCauldronState. ........ r42776 | eriktorbjorn | 2009-07-26 03:48:51 +1000 (Sun, 26 Jul 2009) | 5 lines Make sure that "buf" is properly terminated. Actually, we could probably get rid of "buf" completely, and replace it with face = syncChar[p] - '0', assuming that syncChar only contains digits. But for now, let's make a minimal change. This might fix bug #2826611 ("DRASCULA: Crash when smashing church window"). ........ r42780 | joostp | 2009-07-26 04:35:27 +1000 (Sun, 26 Jul 2009) | 2 lines use READ_UINT16 macro ........ r42782 | drmccoy | 2009-07-26 04:44:06 +1000 (Sun, 26 Jul 2009) | 1 line Adding support for (new-style) stereo in DPCM audio ........ r42783 | drmccoy | 2009-07-26 04:44:24 +1000 (Sun, 26 Jul 2009) | 1 line Adding more sanity checks to Vmd::renderFrame() ........ r42785 | djwillis | 2009-07-26 05:07:28 +1000 (Sun, 26 Jul 2009) | 1 line GP2X Backend: Volume control code cleanup. ........ r42787 | wjpalenstijn | 2009-07-26 09:36:24 +1000 (Sun, 26 Jul 2009) | 2 lines Add optional readline support to the text debugger console. Make text/graphical console selectable with an option to configure. ........ r42790 | dreammaster | 2009-07-26 10:27:32 +1000 (Sun, 26 Jul 2009) | 1 line Changed the events.cpp file to EventDispatcher.cpp, to avoid MSVC name clashes with sdl/events.cpp ........ r42791 | dreammaster | 2009-07-26 10:31:28 +1000 (Sun, 26 Jul 2009) | 1 line Fixed compilation from file changes to common and gob engine ........ r42792 | lordhoto | 2009-07-26 17:07:35 +1000 (Sun, 26 Jul 2009) | 1 line Formatting. ........ r42793 | peres001 | 2009-07-26 18:37:03 +1000 (Sun, 26 Jul 2009) | 1 line Moved parser functions arrays to file scope, as they were tripping up the obsolete gcc used for the BeOS/Haiku port. If anybody can work out a better solution please apply it, because this makes me sick. ........ r42795 | dreammaster | 2009-07-26 19:09:07 +1000 (Sun, 26 Jul 2009) | 1 line Added a delay to the in-game menu loop to prevent 100% CPU usage ........ r42798 | dreammaster | 2009-07-26 19:40:35 +1000 (Sun, 26 Jul 2009) | 1 line Bugfix for mouse button clicks getting counted multiple times ........ r42799 | dreammaster | 2009-07-26 19:48:52 +1000 (Sun, 26 Jul 2009) | 1 line Added a debug line to allow tracking of script execution ........ r42801 | eriktorbjorn | 2009-07-26 20:10:08 +1000 (Sun, 26 Jul 2009) | 4 lines 78 bytes isn't enough for some of the longer conversation options. 128 might not be enough either, but at least it fixes bug #2827170 ("DRASCULA: Conversation error"). ........ r42807 | djwillis | 2009-07-26 22:58:22 +1000 (Sun, 26 Jul 2009) | 2 lines Virtual Keyboard: Update default keyboard pack using slightly tweaked versions of the graphics very kindly provided by Carl Mitchell. Also update xml file to make best use of the keyboard graphics and add the 'delete' event in addition the passing backspace back to the calling textarea. ........ r42809 | drmccoy | 2009-07-26 23:50:18 +1000 (Sun, 26 Jul 2009) | 1 line Reverting my fix for bug #2037158 ("In-Game animation shifted(?)"), because it breaks Woodruff's intro ........ r42812 | lordhoto | 2009-07-27 00:16:51 +1000 (Mon, 27 Jul 2009) | 1 line Create base class FontSJIS16x16 for our own SJIS font. ........ r42813 | lordhoto | 2009-07-27 00:17:06 +1000 (Mon, 27 Jul 2009) | 1 line Add support for our custom SJIS font. ........ r42814 | lordhoto | 2009-07-27 00:17:21 +1000 (Mon, 27 Jul 2009) | 1 line Change KYRA to use our SJIS font, when it's available. ........ r42815 | lordhoto | 2009-07-27 00:17:40 +1000 (Mon, 27 Jul 2009) | 1 line Change the way the font data for SJIS fonts is load. ........ r42816 | lordhoto | 2009-07-27 00:17:54 +1000 (Mon, 27 Jul 2009) | 1 line Add a factory method, which tries to open different SJIS fonts/ROMs and returns a font for the first present data. ........ r42817 | lordhoto | 2009-07-27 00:18:06 +1000 (Mon, 27 Jul 2009) | 1 line Print warning, when client code does try to draw an unsupported SJIS char. ........ r42818 | lordhoto | 2009-07-27 00:18:21 +1000 (Mon, 27 Jul 2009) | 1 line Specify that the chars passed to FontSJIS::drawChar should be little endian. ........ r42819 | lordhoto | 2009-07-27 00:18:34 +1000 (Mon, 27 Jul 2009) | 1 line Add way to overwrite default SJIS font. ........ r42820 | lordhoto | 2009-07-27 00:18:49 +1000 (Mon, 27 Jul 2009) | 1 line Simplify KYRA's SJIS font loading code. ........ r42821 | lordhoto | 2009-07-27 00:19:02 +1000 (Mon, 27 Jul 2009) | 1 line Reflect code to test the magic bytes in the sjis.fnt header. ........ r42822 | lordhoto | 2009-07-27 00:24:45 +1000 (Mon, 27 Jul 2009) | 1 line Add NEWS entry about new SJIS code. ........ r42823 | lordhoto | 2009-07-27 00:40:03 +1000 (Mon, 27 Jul 2009) | 1 line Instead of only printing a warning, when no SJIS char data is present, just return to the caller. ........ r42824 | lordhoto | 2009-07-27 00:40:44 +1000 (Mon, 27 Jul 2009) | 1 line Add a todo to FontSJIS::drawChar taking an Graphics::Surface. ........ r42825 | marcus_c | 2009-07-27 06:41:33 +1000 (Mon, 27 Jul 2009) | 1 line Create IP.BIN. ........ r42826 | joostp | 2009-07-27 07:06:53 +1000 (Mon, 27 Jul 2009) | 1 line fix/workaround for cruise crash on OSX ........ r42842 | wjpalenstijn | 2009-07-28 02:04:35 +1000 (Tue, 28 Jul 2009) | 2 lines Fix format string issues (and compiler warnings). Patch by salty-horse. ........ r42843 | robinwatts | 2009-07-28 02:29:36 +1000 (Tue, 28 Jul 2009) | 7 lines Add ARM code version of Normal2x scaler. Add ARM only aspect ratio correcting version of Normal2x scaler. Make WinCE port use Normal2x by default if the screen is large enough. Make WinCE port use aspect ratio correcting version if panel is hidden. ........ r42844 | lordhoto | 2009-07-28 03:04:06 +1000 (Tue, 28 Jul 2009) | 1 line Formatting. ........ r42845 | lordhoto | 2009-07-28 03:48:40 +1000 (Tue, 28 Jul 2009) | 1 line Fix bug #2827459 "ITE: Ingame GUI does not list slots 96-99", by defining in SagaMetaEngine that the last valid save slot for SAGA is slot 95. ........ r42847 | djwillis | 2009-07-28 04:05:16 +1000 (Tue, 28 Jul 2009) | 1 line GP2XWiz: Update GP2X Wiz bundle.sh to copy libraries into the distribution file from the tool chain where the libraries are broken on the device. Also add LD_LIBRARY_PATH 'hack' to launch script to ensure bundled libraries are used over system ones. ........ r42849 | lordhoto | 2009-07-28 04:19:16 +1000 (Tue, 28 Jul 2009) | 1 line Oops enabled HACK to prevent multiple OPL instances again. ........ r42851 | drmccoy | 2009-07-28 05:01:17 +1000 (Tue, 28 Jul 2009) | 1 line Abstracting off the block types from Imd::renderFrame() and Vmd::renderFrame() ........ r42856 | drmccoy | 2009-07-29 01:05:44 +1000 (Wed, 29 Jul 2009) | 1 line Silencing two "empty loop body" warnings ........ r42857 | drmccoy | 2009-07-29 01:19:55 +1000 (Wed, 29 Jul 2009) | 1 line Changing stuff around a bit so alignment requirements won't increase ........ r42858 | drmccoy | 2009-07-29 02:28:32 +1000 (Wed, 29 Jul 2009) | 1 line More alignment-related changes ........ r42859 | eriktorbjorn | 2009-07-29 03:19:33 +1000 (Wed, 29 Jul 2009) | 3 lines Fixed drawing subtitles for cutscenes that are narrower than the screen, and erase the subtitles manually if they are drawn outside the frame. ........ r42861 | eriktorbjorn | 2009-07-29 03:53:59 +1000 (Wed, 29 Jul 2009) | 3 lines Broken Sword 2, unsurprisingly, had the same subtitle drawing glitch for small cutscenes that Broken Sword 1 had. And a memory leak. This should fix both. ........ r42863 | djwillis | 2009-07-29 06:22:38 +1000 (Wed, 29 Jul 2009) | 1 line GP2XWiz: Add downscale support to the backend using the PocketPCHalfARM scaler from the WinCE backend (Maybe this should be moved into /graphics/scalers at some point?). Also enable all the ARM optemised routines in this and the GP2X backend. ........ r42866 | fingolfin | 2009-07-29 08:28:40 +1000 (Wed, 29 Jul 2009) | 1 line SCI: Avoid using perror (it's not portable) ........ r42868 | fingolfin | 2009-07-29 08:42:08 +1000 (Wed, 29 Jul 2009) | 1 line Patch #2828644: Support for mingw32ce 0.5.1 toolchain in configure script ........ r42870 | fingolfin | 2009-07-29 09:19:33 +1000 (Wed, 29 Jul 2009) | 2 lines SCUMM: Moved _inventoryOffset to ScummEngine_v2 and save it. Fixes bug #2828417: Zak V2: inventory position isn't reset when loading. ........ r42880 | fingolfin | 2009-07-29 18:55:04 +1000 (Wed, 29 Jul 2009) | 1 line SCUMM: cleanup ........ r42881 | fingolfin | 2009-07-29 18:55:17 +1000 (Wed, 29 Jul 2009) | 1 line GUI: When clicking in a scrollbar to page up/down, don't scroll a full page; rather scroll a full page minus one line (see FR #2821508). This matches the behavior of the page up/down keys ........ r42886 | fingolfin | 2009-07-29 19:19:56 +1000 (Wed, 29 Jul 2009) | 1 line Sort audio output rates numerically (see FR #2821525) ........ r42887 | drmccoy | 2009-07-29 20:17:44 +1000 (Wed, 29 Jul 2009) | 1 line Adding a SoundType parameter to SmackerDecoder, defaulting to kSFXSoundType ........ r42889 | fingolfin | 2009-07-29 21:48:20 +1000 (Wed, 29 Jul 2009) | 1 line SCUMM: Rewrote ScummEngine::inventoryScriptIndy3Mac for clarity ........ r42890 | lordhoto | 2009-07-30 00:54:27 +1000 (Thu, 30 Jul 2009) | 1 line Fix animation script sound effect opcode implementation in Kyra3. ........ r42892 | lordhoto | 2009-07-30 01:31:23 +1000 (Thu, 30 Jul 2009) | 1 line Fix saving of item in hand in HoF and MR. ........ r42894 | drmccoy | 2009-07-30 01:57:50 +1000 (Thu, 30 Jul 2009) | 1 line Oops, fixing a regression I created with the Map_v4/Map_v2-merge ........ r42895 | lordhoto | 2009-07-30 02:24:07 +1000 (Thu, 30 Jul 2009) | 1 line Fix a little bug in KyraEngine_MR::showBadConscience, which prevented Gunther's mouse shapes from showing up. ........ r42898 | fingolfin | 2009-07-30 04:35:34 +1000 (Thu, 30 Jul 2009) | 1 line SCUMM: Enable looping in Indy3Mac sound effects ........ r42900 | lordhoto | 2009-07-30 05:39:03 +1000 (Thu, 30 Jul 2009) | 1 line Fix regression, which prevented saving in COMI. ........ r42904 | lordhoto | 2009-07-30 06:03:46 +1000 (Thu, 30 Jul 2009) | 1 line Fix typo, which made our "floorf" macro use "floorf" instead of "floor" on systems without "floorf". ........ r42907 | fingolfin | 2009-07-30 06:35:50 +1000 (Thu, 30 Jul 2009) | 1 line SCUMM: Fix verb/sentence handling in Indy3 mac (there, a double click must be used to trigger a verb/sentence) ........ r42910 | fingolfin | 2009-07-30 07:39:00 +1000 (Thu, 30 Jul 2009) | 1 line Removed last traces of clearIOFailed. Yay :) ........ r42911 | fingolfin | 2009-07-30 07:39:16 +1000 (Thu, 30 Jul 2009) | 1 line Removed redundant File::ioFailed() implementation; also turned ReadStream::ioFailed from a virtual into an inline method ........ r42912 | fingolfin | 2009-07-30 07:39:34 +1000 (Thu, 30 Jul 2009) | 1 line SWORD1 & SWORD2: Replaced ioFailed by err+eos ........ r42918 | fingolfin | 2009-07-30 19:36:50 +1000 (Thu, 30 Jul 2009) | 1 line Patch #2818501: enable scale2x mmx on x86_64 ........ r42920 | dreammaster | 2009-07-30 21:03:16 +1000 (Thu, 30 Jul 2009) | 1 line Added the character lookup table for the Spanish font ........ r42922 | peres001 | 2009-07-30 23:41:22 +1000 (Thu, 30 Jul 2009) | 1 line Use SaveFileMan::listSaveFiles() to build list of old savegames for Nippon Safes. ........ r42923 | peres001 | 2009-07-30 23:42:08 +1000 (Thu, 30 Jul 2009) | 1 line Fixed typo in user message. ........ r42924 | peres001 | 2009-07-30 23:44:50 +1000 (Thu, 30 Jul 2009) | 1 line Cleanup the header file as I removed one function in r42922. ........ r42926 | lordhoto | 2009-07-31 00:24:23 +1000 (Fri, 31 Jul 2009) | 1 line Fix bug which caused the mouse cursor not to update in some cases. ........ r42929 | lordhoto | 2009-07-31 01:12:42 +1000 (Fri, 31 Jul 2009) | 1 line Add tanoku to our GUI credits section. ........ r42932 | lordhoto | 2009-07-31 01:19:15 +1000 (Fri, 31 Jul 2009) | 1 line Prevent our "credits" make target updating Credits.rtf, which in fact is not present in SVN anymore, and the outdated docbook. ........ r42934 | lordhoto | 2009-07-31 02:43:25 +1000 (Fri, 31 Jul 2009) | 1 line Fix bug #2829737: "GUI: Wrong background colours on dialog screens (IRIX)". ........ r42935 | lordhoto | 2009-07-31 02:51:53 +1000 (Fri, 31 Jul 2009) | 1 line Fixed missing clearing of the low bit of the alpha mask in the "dim" screen shading function. ........ r42937 | fingolfin | 2009-07-31 03:48:03 +1000 (Fri, 31 Jul 2009) | 1 line NDS: Changed jtypes.h to ndstypes.h (this 'newer' name has been in effect even in the older versions of DevKitPro used for compiling ScummVM...) ........ r42938 | fingolfin | 2009-07-31 03:52:44 +1000 (Fri, 31 Jul 2009) | 1 line minor cleanup to scale2x, to avoid confusing the compiler about potential pointer aliasing (only the tip of the iceberg, of course... ;) ........ r42939 | fingolfin | 2009-07-31 04:27:50 +1000 (Fri, 31 Jul 2009) | 1 line DS: Started work on a new build system for the Nintendo DS port, based on configure (and thus suitable for buildbot). Currently only the ARM7 part is 'done' ........ r42940 | lordhoto | 2009-07-31 05:43:36 +1000 (Fri, 31 Jul 2009) | 1 line Change code to use our fractional utilities. ........ r42941 | lordhoto | 2009-07-31 05:43:53 +1000 (Fri, 31 Jul 2009) | 1 line Fix Browser dialog name. ........ r42943 | fingolfin | 2009-07-31 06:46:43 +1000 (Fri, 31 Jul 2009) | 1 line Overhauled the credits: Retired members are now (partially) back to their old sections, to make sure people really see all people who contribute to an engine/backend. Also added&fixed some entries, and moved the FreeSCI section ........ r42946 | fingolfin | 2009-07-31 06:58:32 +1000 (Fri, 31 Jul 2009) | 1 line Changed 10rdH070's nick back to LordHoto, and added Hkz to the credits ........ r42947 | fingolfin | 2009-07-31 07:04:46 +1000 (Fri, 31 Jul 2009) | 1 line Added Strangerke to credits, and moved wjp from Gob to SCI on his request ........ r42950 | fingolfin | 2009-07-31 07:45:09 +1000 (Fri, 31 Jul 2009) | 1 line Patch #2828669: CRUISE: Fix cruise compilation with mingw32ce toolchain ........ r42951 | fingolfin | 2009-07-31 07:56:04 +1000 (Fri, 31 Jul 2009) | 1 line SCUMM: Properly detect & distinguish the three FM-TOWNS double-demos ........ r42952 | fingolfin | 2009-07-31 07:56:18 +1000 (Fri, 31 Jul 2009) | 1 line cleanup ........ r42953 | tanoku | 2009-07-31 09:42:12 +1000 (Fri, 31 Jul 2009) | 2 lines Fixed corrupted theme files. ........ r42955 | tanoku | 2009-07-31 10:22:46 +1000 (Fri, 31 Jul 2009) | 2 lines Prevent high-resolution layouts to be loaded on low resolutions. ........ r42958 | peres001 | 2009-07-31 22:39:31 +1000 (Fri, 31 Jul 2009) | 1 line When renaming old savefiles for Nippon Safes, don't assert if a file that matches the pattern game.* and is not a savefile is found in the savepath. ........ r42959 | djwillis | 2009-07-31 23:01:28 +1000 (Fri, 31 Jul 2009) | 1 line GP2X: Clean up README-GP2X and remove HTML version of it from SVN (no one ever reads it and the WiKi is more upto date). ........ r42964 | djwillis | 2009-08-01 03:10:20 +1000 (Sat, 01 Aug 2009) | 1 line GP2XWiz: Small cleanup of render code to slave as much of loadGFXMode() code back to the OSystem_SDL::loadGFXMode(). version. Also update README-GP2XWIZ. ........ r42965 | dreammaster | 2009-08-01 09:27:19 +1000 (Sat, 01 Aug 2009) | 1 line Fix bug with the event loop that was discarding pending events rather than leaving them to be processed in the following frame ........ r42973 | buddha_ | 2009-08-01 19:53:21 +1000 (Sat, 01 Aug 2009) | 1 line Remove obsolete comment from Cine::Palette::saturatedAddColor. ........ r42974 | eriktorbjorn | 2009-08-02 01:42:42 +1000 (Sun, 02 Aug 2009) | 4 lines Added some more information to the "Compressed sound ... invalid" error. Maybe this will help in determining what's causing bug #2830364. (It sounds like a bad data file, but who knows...) ........ r42995 | drmccoy | 2009-08-02 20:40:27 +1000 (Sun, 02 Aug 2009) | 1 line When ESCing videos, seek to the last frame that was meant to be played. Fixes graphical glitches (bug #2830985) and crashes (bug #2830988) ........ r42996 | drmccoy | 2009-08-02 20:40:48 +1000 (Sun, 02 Aug 2009) | 1 line Removing _frameWaitLag. It broke normal animation speed in pre-v4 games and didn't even do what it was supposed to in v4+ games anyway. (bug #2830985) ........ r42999 | eriktorbjorn | 2009-08-02 22:49:57 +1000 (Sun, 02 Aug 2009) | 2 lines Show a message if saving or loading a game fails. ........ r43001 | drmccoy | 2009-08-02 23:54:06 +1000 (Sun, 02 Aug 2009) | 1 line Show a message if saving or loading a game fails. ........ r43003 | knakos | 2009-08-03 03:34:57 +1000 (Mon, 03 Aug 2009) | 1 line rework mixer (re)init. fixes bug #2694722 ........ r43005 | joostp | 2009-08-03 03:58:48 +1000 (Mon, 03 Aug 2009) | 1 line align memory handles to sizeof(void*) instead of 4 (which is just good enough for 32-bit) - this fixes DW2 on 64-bit systems that require alignment ........ r43007 | djwillis | 2009-08-03 05:46:18 +1000 (Mon, 03 Aug 2009) | 1 line GP2XWiz: More cleanup of render code and fix silly screen update bug when reverting to a 320*2xx game from a 640*4xx game. Dirty rect code for downscaled images still needs work. ........ r43008 | knakos | 2009-08-03 05:50:24 +1000 (Mon, 03 Aug 2009) | 1 line clean up and fix vga aspect scaler routines ........ r43010 | djwillis | 2009-08-03 07:18:25 +1000 (Mon, 03 Aug 2009) | 1 line GP2XWiz/SDL: Fix 2 small typos. ........ r43011 | joostp | 2009-08-03 07:22:46 +1000 (Mon, 03 Aug 2009) | 1 line Fix AGI crashes on 64-bit systems that require alignment ........ r43013 | joostp | 2009-08-03 07:44:21 +1000 (Mon, 03 Aug 2009) | 1 line Make MemoryReAlloc() 64-bit alignment safe ........ r43020 | scott_t | 2009-08-03 11:19:36 +1000 (Mon, 03 Aug 2009) | 1 line T7G: Fix bug #2831046 where save names not shown after loading a save from launcher ........ r43023 | dreammaster | 2009-08-03 19:28:06 +1000 (Mon, 03 Aug 2009) | 1 line Bugfix to correctly reset the music tempo when loading a savegame ........ r43025 | buddha_ | 2009-08-04 03:18:18 +1000 (Tue, 04 Aug 2009) | 6 lines Fix for bug #2828333 (AGI: KQ1: Greensleeves always plays): - Made all savegame loading in AGI do the same pre-load and post-load stuff. - Moved load/saveGameState from AgiBase to AgiEngine - Added rudimentary error handling to load/saveGameState - Incidentally also fixes the hanging note from bug #2798797. ........ r43027 | buddha_ | 2009-08-04 03:52:07 +1000 (Tue, 04 Aug 2009) | 8 lines Fix for #2824798 (FW: crash when clicking "load" in the GUI): - Fixed CineMetaEngine::listSaves(const char *target) which was broken. - Also added explicit initialization of savegame descriptions to empty strings for safety reasons (e.g. arrays on stack aren't initialized to zero). - Added explicit trailing zero setting to savegame descriptions (Previously using GMM you could write a description of length >= 20 that had no trailing zero when written to description file (e.g. fw.dir)). ........ r43029 | djwillis | 2009-08-04 04:38:46 +1000 (Tue, 04 Aug 2009) | 1 line GP2XWiz: Fix bug with downscaled cursors. ........ r43033 | knakos | 2009-08-04 22:02:07 +1000 (Tue, 04 Aug 2009) | 1 line add bindings for cruise engine ........ r43035 | knakos | 2009-08-04 22:19:30 +1000 (Tue, 04 Aug 2009) | 1 line support made engine ........ r43037 | knakos | 2009-08-04 22:39:33 +1000 (Tue, 04 Aug 2009) | 1 line update Makefile ........ r43039 | knakos | 2009-08-04 22:51:17 +1000 (Tue, 04 Aug 2009) | 1 line update readme (draft) ........ r43041 | knakos | 2009-08-04 23:17:33 +1000 (Tue, 04 Aug 2009) | 1 line commit slightly modified patch #2828646: WINCE: Integrate Windows CE with the master build system ........ r43042 | thebluegr | 2009-08-05 00:20:38 +1000 (Wed, 05 Aug 2009) | 1 line Cleaned up the MSVC project files of the gob engine ........ r43043 | knakos | 2009-08-05 00:53:43 +1000 (Wed, 05 Aug 2009) | 1 line got rid of superfluous semicolons ........ r43048 | thebluegr | 2009-08-05 03:22:18 +1000 (Wed, 05 Aug 2009) | 1 line Removed the superfluous VGA buffer, replacing it with direct writes to the video buffer ........ r43056 | thebluegr | 2009-08-05 07:56:59 +1000 (Wed, 05 Aug 2009) | 1 line Cleanup ........ svn-id: r43062
1402 lines
36 KiB
C++
1402 lines
36 KiB
C++
/* ScummVM - Graphic Adventure Engine
|
|
*
|
|
* ScummVM is the legal property of its developers, whose names
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
* file distributed with this source distribution.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*
|
|
* $URL$
|
|
* $Id$
|
|
*
|
|
*/
|
|
|
|
#ifndef SCUMM_H
|
|
#define SCUMM_H
|
|
|
|
#include "engines/engine.h"
|
|
#include "common/endian.h"
|
|
#include "common/events.h"
|
|
#include "common/file.h"
|
|
#include "common/savefile.h"
|
|
#include "common/keyboard.h"
|
|
#include "common/rect.h"
|
|
#include "common/str.h"
|
|
#include "graphics/surface.h"
|
|
|
|
#include "scumm/gfx.h"
|
|
#include "scumm/detection.h"
|
|
#include "scumm/script.h"
|
|
|
|
#include "sound/mididrv.h"
|
|
|
|
namespace GUI {
|
|
class Dialog;
|
|
}
|
|
using GUI::Dialog;
|
|
namespace Common {
|
|
class SeekableReadStream;
|
|
class WriteStream;
|
|
}
|
|
|
|
namespace Scumm {
|
|
|
|
class Actor;
|
|
class BaseCostumeLoader;
|
|
class BaseCostumeRenderer;
|
|
class BaseScummFile;
|
|
class CharsetRenderer;
|
|
class IMuse;
|
|
class IMuseDigital;
|
|
class MusicEngine;
|
|
class ScummEngine;
|
|
class ScummDebugger;
|
|
class Serializer;
|
|
class Sound;
|
|
|
|
struct Box;
|
|
struct BoxCoords;
|
|
struct FindObjectInRoom;
|
|
|
|
// Use g_scumm from error() ONLY
|
|
extern ScummEngine *g_scumm;
|
|
|
|
/* System Wide Constants */
|
|
enum {
|
|
NUM_SENTENCE = 6,
|
|
NUM_SHADOW_PALETTE = 8
|
|
};
|
|
|
|
/**
|
|
* SCUMM feature flags define for every game which specific set of engine
|
|
* features are used by that game.
|
|
* Note that some of them could be replaced by checks for the SCUMM version.
|
|
*/
|
|
enum GameFeatures {
|
|
/** A demo, not a full blown game. */
|
|
GF_DEMO = 1 << 0,
|
|
|
|
/** Games with the AKOS costume system (ScummEngine_v7 and subclasses, HE games). */
|
|
GF_NEW_COSTUMES = 1 << 2,
|
|
|
|
/** Games using XOR encrypted data files. */
|
|
GF_USE_KEY = 1 << 4,
|
|
|
|
/** Small header games (ScummEngine_v4 and subclasses). */
|
|
GF_SMALL_HEADER = 1 << 5,
|
|
|
|
/** Old bundle games (ScummEngine_v3old and subclasses). */
|
|
GF_OLD_BUNDLE = 1 << 6,
|
|
|
|
/** EGA games. */
|
|
GF_16COLOR = 1 << 7,
|
|
|
|
/** VGA versions of V3 games. Equivalent to (version == 3 && not GF_16COLOR) */
|
|
GF_OLD256 = 1 << 8,
|
|
|
|
/** Games which have Audio CD tracks. */
|
|
GF_AUDIOTRACKS = 1 << 9,
|
|
|
|
/**
|
|
* Games using only very few local variables in scripts.
|
|
* Apparently that is only the case for 256 color version of Indy3.
|
|
*/
|
|
GF_FEW_LOCALS = 1 << 11,
|
|
|
|
/** HE games for which localized versions exist */
|
|
GF_HE_LOCALIZED = 1 << 13,
|
|
|
|
/**
|
|
* HE games with more global scripts and different sprite handling
|
|
* i.e. read it as HE version 9.85. Used for HE98 only.
|
|
*/
|
|
GF_HE_985 = 1 << 14,
|
|
|
|
/** HE games with 16 bit color */
|
|
GF_16BIT_COLOR = 1 << 15
|
|
};
|
|
|
|
/* SCUMM Debug Channels */
|
|
void debugC(int level, const char *s, ...) GCC_PRINTF(2, 3);
|
|
|
|
enum {
|
|
DEBUG_GENERAL = 1 << 0, // General debug
|
|
DEBUG_SCRIPTS = 1 << 2, // Track script execution (start/stop/pause)
|
|
DEBUG_OPCODES = 1 << 3, // Track opcode invocations
|
|
DEBUG_VARS = 1 << 4, // Track variable changes
|
|
DEBUG_RESOURCE = 1 << 5, // Track resource loading / allocation
|
|
DEBUG_IMUSE = 1 << 6, // Track iMUSE events
|
|
DEBUG_SOUND = 1 << 7, // General Sound Debug
|
|
DEBUG_ACTORS = 1 << 8, // General Actor Debug
|
|
DEBUG_INSANE = 1 << 9, // Track INSANE
|
|
DEBUG_SMUSH = 1 << 10 // Track SMUSH
|
|
};
|
|
|
|
/**
|
|
* Internal header for any memory block allocated by the resource manager.
|
|
*
|
|
* @todo Hide MemBlkHeader; no code outside the resource manager should
|
|
* have to use it, ever. Currently script code needs it to detect whether
|
|
* some scripts have moved (in fetchScriptByte()).
|
|
*/
|
|
struct MemBlkHeader {
|
|
uint32 size;
|
|
};
|
|
|
|
struct VerbSlot;
|
|
struct ObjectData;
|
|
|
|
enum {
|
|
/**
|
|
* Lighting flag that indicates whether the normal palette, or the 'dark'
|
|
* palette shall be used to draw actors.
|
|
* Apparantly only used in very old games (so far only NESCostumeRenderer
|
|
* checks it).
|
|
*/
|
|
LIGHTMODE_actor_use_base_palette = 1 << 0,
|
|
|
|
/**
|
|
* Lighting flag that indicates whether the room is currently lit. Normally
|
|
* always on. Used for rooms in which the light can be switched "off".
|
|
*/
|
|
LIGHTMODE_room_lights_on = 1 << 1,
|
|
|
|
/**
|
|
* Lighting flag that indicates whether a flashlight like device is active.
|
|
* Used in Loom (flashlight follows the actor) and Indy 3 (flashlight
|
|
* follows the mouse). Only has any effect if the room lights are off.
|
|
*/
|
|
LIGHTMODE_flashlight_on = 1 << 2,
|
|
|
|
/**
|
|
* Lighting flag that indicates whether actors are to be drawn with their
|
|
* own custom palette, or using a fixed 'dark' palette. This is the
|
|
* modern successor of LIGHTMODE_actor_use_base_palette.
|
|
* Note: It is tempting to 'merge' these two flags, but since flags can
|
|
* check their values, this is probably not a good idea.
|
|
*/
|
|
LIGHTMODE_actor_use_colors = 1 << 3
|
|
//
|
|
};
|
|
|
|
enum {
|
|
MBS_LEFT_CLICK = 0x8000,
|
|
MBS_RIGHT_CLICK = 0x4000,
|
|
MBS_MOUSE_MASK = (MBS_LEFT_CLICK | MBS_RIGHT_CLICK),
|
|
MBS_MAX_KEY = 0x0200
|
|
};
|
|
|
|
enum ScummGameId {
|
|
GID_CMI,
|
|
GID_DIG,
|
|
GID_FT,
|
|
GID_INDY3,
|
|
GID_INDY4,
|
|
GID_LOOM,
|
|
GID_MANIAC,
|
|
GID_MONKEY_EGA,
|
|
GID_MONKEY_VGA,
|
|
GID_MONKEY,
|
|
GID_MONKEY2,
|
|
GID_PASS,
|
|
GID_SAMNMAX,
|
|
GID_TENTACLE,
|
|
GID_ZAK,
|
|
|
|
GID_HEGAME, // Generic name for all HE games with default behaviour
|
|
GID_PUTTDEMO,
|
|
GID_FBEAR,
|
|
GID_PUTTMOON,
|
|
GID_FUNPACK,
|
|
GID_FREDDI3,
|
|
GID_BIRTHDAY,
|
|
GID_TREASUREHUNT,
|
|
GID_PUTTRACE,
|
|
GID_FUNSHOP, // Used for all three funshops
|
|
GID_FOOTBALL,
|
|
GID_SOCCER,
|
|
GID_BASKETBALL,
|
|
GID_MOONBASE,
|
|
GID_HECUP // CUP demos
|
|
};
|
|
|
|
struct SentenceTab {
|
|
byte verb;
|
|
byte preposition;
|
|
uint16 objectA;
|
|
uint16 objectB;
|
|
uint8 freezeCount;
|
|
};
|
|
|
|
struct StringSlot {
|
|
int16 xpos;
|
|
int16 ypos;
|
|
int16 right;
|
|
int16 height;
|
|
byte color;
|
|
byte charset;
|
|
bool center;
|
|
bool overhead;
|
|
bool no_talk_anim;
|
|
bool wrapping;
|
|
};
|
|
|
|
struct StringTab : StringSlot {
|
|
// The 'default' values for this string slot. This is used so that the
|
|
// string slot can temporarily be set to different values, and then be
|
|
// easily reset to a previously set default.
|
|
StringSlot _default;
|
|
|
|
void saveDefault() {
|
|
StringSlot &s = *this;
|
|
_default = s;
|
|
}
|
|
|
|
void loadDefault() {
|
|
StringSlot &s = *this;
|
|
s = _default;
|
|
}
|
|
};
|
|
|
|
|
|
|
|
enum WhereIsObject {
|
|
WIO_NOT_FOUND = -1,
|
|
WIO_INVENTORY = 0,
|
|
WIO_ROOM = 1,
|
|
WIO_GLOBAL = 2,
|
|
WIO_LOCAL = 3,
|
|
WIO_FLOBJECT = 4
|
|
};
|
|
|
|
struct AuxBlock {
|
|
bool visible;
|
|
Common::Rect r;
|
|
|
|
void reset() {
|
|
visible = false;
|
|
r.left = r.top = 0;
|
|
r.right = r.bottom = -1;
|
|
}
|
|
};
|
|
|
|
struct AuxEntry {
|
|
int actorNum;
|
|
int subIndex;
|
|
};
|
|
|
|
// TODO: Rename InfoStuff to something more descriptive
|
|
struct InfoStuff {
|
|
uint32 date;
|
|
uint16 time;
|
|
uint32 playtime;
|
|
};
|
|
|
|
/**
|
|
* A list of resource types.
|
|
* WARNING: Do not change the order of these, as the savegame format relies
|
|
* on it; any change made here will break savegame compatibility!
|
|
*/
|
|
enum ResTypes {
|
|
rtFirst = 1,
|
|
rtRoom = 1,
|
|
rtScript = 2,
|
|
rtCostume = 3,
|
|
rtSound = 4,
|
|
rtInventory = 5,
|
|
rtCharset = 6,
|
|
rtString = 7,
|
|
rtVerb = 8,
|
|
rtActorName = 9,
|
|
rtBuffer = 10,
|
|
rtScaleTable = 11,
|
|
rtTemp = 12,
|
|
rtFlObject = 13,
|
|
rtMatrix = 14,
|
|
rtBox = 15,
|
|
rtObjectName = 16,
|
|
rtRoomScripts = 17,
|
|
rtRoomImage = 18,
|
|
rtImage = 19,
|
|
rtTalkie = 20,
|
|
rtSpoolBuffer = 21,
|
|
rtLast = 21,
|
|
rtNumTypes = 22
|
|
};
|
|
|
|
enum {
|
|
RES_INVALID_OFFSET = 0xFFFFFFFF
|
|
};
|
|
|
|
/**
|
|
* The 'resource manager' class. Currently doesn't really deserve to be called
|
|
* a 'class', at least until somebody gets around to OOfying this more.
|
|
*/
|
|
class ResourceManager {
|
|
//friend class ScummDebugger;
|
|
//friend class ScummEngine;
|
|
protected:
|
|
ScummEngine *_vm;
|
|
|
|
public:
|
|
byte mode[rtNumTypes];
|
|
uint16 num[rtNumTypes];
|
|
uint32 tags[rtNumTypes];
|
|
const char *name[rtNumTypes];
|
|
byte **address[rtNumTypes];
|
|
protected:
|
|
byte *flags[rtNumTypes];
|
|
byte *status[rtNumTypes];
|
|
public:
|
|
byte *roomno[rtNumTypes];
|
|
uint32 *roomoffs[rtNumTypes];
|
|
uint32 *globsize[rtNumTypes];
|
|
|
|
protected:
|
|
uint32 _allocatedSize;
|
|
uint32 _maxHeapThreshold, _minHeapThreshold;
|
|
byte _expireCounter;
|
|
|
|
public:
|
|
ResourceManager(ScummEngine *vm);
|
|
~ResourceManager();
|
|
|
|
void setHeapThreshold(int min, int max);
|
|
|
|
void allocResTypeData(int id, uint32 tag, int num, const char *name, int mode);
|
|
void freeResources();
|
|
|
|
byte *createResource(int type, int index, uint32 size);
|
|
void nukeResource(int type, int i);
|
|
|
|
bool isResourceLoaded(int type, int index) const;
|
|
|
|
void lock(int type, int i);
|
|
void unlock(int type, int i);
|
|
bool isLocked(int type, int i) const;
|
|
|
|
void setModified(int type, int i);
|
|
bool isModified(int type, int i) const;
|
|
|
|
void increaseExpireCounter();
|
|
void setResourceCounter(int type, int index, byte flag);
|
|
void increaseResourceCounter();
|
|
|
|
void resourceStats();
|
|
|
|
//protected:
|
|
bool validateResource(const char *str, int type, int index) const;
|
|
protected:
|
|
void expireResources(uint32 size);
|
|
};
|
|
|
|
/**
|
|
* Base class for all SCUMM engines.
|
|
*/
|
|
class ScummEngine : public Engine {
|
|
friend class ScummDebugger;
|
|
friend class CharsetRenderer;
|
|
friend class ResourceManager;
|
|
|
|
public:
|
|
/* Put often used variables at the top.
|
|
* That results in a shorter form of the opcode
|
|
* on some architectures. */
|
|
IMuse *_imuse;
|
|
IMuseDigital *_imuseDigital;
|
|
MusicEngine *_musicEngine;
|
|
Sound *_sound;
|
|
|
|
VerbSlot *_verbs;
|
|
ObjectData *_objs;
|
|
ScummDebugger *_debugger;
|
|
|
|
// Core variables
|
|
GameSettings _game;
|
|
uint8 _gameMD5[16];
|
|
|
|
/** Random number generator */
|
|
Common::RandomSource _rnd;
|
|
|
|
/** Graphics manager */
|
|
Gdi *_gdi;
|
|
|
|
/** Central resource data. */
|
|
ResourceManager *_res;
|
|
|
|
protected:
|
|
VirtualMachineState vm;
|
|
|
|
bool _oldSoundsPaused;
|
|
|
|
public:
|
|
// Constructor / Destructor
|
|
ScummEngine(OSystem *syst, const DetectorResult &dr);
|
|
virtual ~ScummEngine();
|
|
|
|
// Engine APIs
|
|
Common::Error init();
|
|
Common::Error go();
|
|
virtual Common::Error run() {
|
|
Common::Error err;
|
|
err = init();
|
|
if (err != Common::kNoError)
|
|
return err;
|
|
return go();
|
|
}
|
|
virtual void errorString(const char *buf_input, char *buf_output, int buf_output_size);
|
|
virtual GUI::Debugger *getDebugger();
|
|
virtual bool hasFeature(EngineFeature f) const;
|
|
virtual void syncSoundSettings();
|
|
|
|
virtual Common::Error loadGameState(int slot);
|
|
virtual bool canLoadGameStateCurrently();
|
|
virtual Common::Error saveGameState(int slot, const char *desc);
|
|
virtual bool canSaveGameStateCurrently();
|
|
|
|
virtual void pauseEngineIntern(bool pause);
|
|
|
|
protected:
|
|
virtual void setupScumm();
|
|
virtual void resetScumm();
|
|
|
|
virtual void setupScummVars();
|
|
virtual void resetScummVars();
|
|
|
|
void setupCharsetRenderer();
|
|
void setupCostumeRenderer();
|
|
|
|
virtual void loadLanguageBundle() {}
|
|
void loadCJKFont();
|
|
void setupMusic(int midi);
|
|
void setTalkSpeed(int talkspeed);
|
|
int getTalkSpeed();
|
|
|
|
// Scumm main loop & helper functions.
|
|
virtual void scummLoop(int delta);
|
|
virtual void scummLoop_updateScummVars();
|
|
virtual void scummLoop_handleSaveLoad();
|
|
virtual void scummLoop_handleDrawing();
|
|
virtual void scummLoop_handleActors() = 0;
|
|
virtual void scummLoop_handleEffects();
|
|
virtual void scummLoop_handleSound();
|
|
|
|
virtual void runBootscript();
|
|
|
|
// Event handling
|
|
public:
|
|
void parseEvents(); // Used by IMuseDigital::startSound
|
|
protected:
|
|
virtual void parseEvent(Common::Event event);
|
|
|
|
void waitForTimer(int msec_delay);
|
|
virtual void processInput();
|
|
virtual void processKeyboard(Common::KeyState lastKeyHit);
|
|
virtual void clearClickedStatus();
|
|
|
|
// Cursor/palette
|
|
void updateCursor();
|
|
virtual void animateCursor() {}
|
|
virtual void updatePalette();
|
|
|
|
virtual void resetCursors() {}
|
|
|
|
public:
|
|
void pauseGame();
|
|
void restart();
|
|
|
|
protected:
|
|
Dialog *_pauseDialog;
|
|
Dialog *_messageDialog;
|
|
Dialog *_versionDialog;
|
|
Dialog *_scummMenuDialog;
|
|
|
|
virtual int runDialog(Dialog &dialog);
|
|
void confirmExitDialog();
|
|
void confirmRestartDialog();
|
|
void pauseDialog();
|
|
void messageDialog(const char *message);
|
|
void versionDialog();
|
|
void scummMenuDialog();
|
|
|
|
char displayMessage(const char *altButton, const char *message, ...) GCC_PRINTF(3, 4);
|
|
|
|
byte _fastMode;
|
|
|
|
byte _numActors;
|
|
Actor **_actors; // Has _numActors elements
|
|
Actor **_sortedActors;
|
|
|
|
byte *_arraySlot;
|
|
uint16 *_inventory;
|
|
uint16 *_newNames;
|
|
public:
|
|
// VAR is a wrapper around scummVar, which attempts to include additional
|
|
// useful information should an illegal var access be detected.
|
|
#define VAR(x) scummVar(x, #x, __FILE__, __LINE__)
|
|
int32& scummVar(byte var, const char *varName, const char *file, int line) {
|
|
if (var == 0xFF) {
|
|
error("Illegal access to variable %s in file %s, line %d", varName, file, line);
|
|
}
|
|
return _scummVars[var];
|
|
}
|
|
int32 scummVar(byte var, const char *varName, const char *file, int line) const {
|
|
if (var == 0xFF) {
|
|
error("Illegal access to variable %s in file %s, line %d", varName, file, line);
|
|
}
|
|
return _scummVars[var];
|
|
}
|
|
|
|
protected:
|
|
int16 _varwatch;
|
|
int32 *_roomVars;
|
|
int32 *_scummVars;
|
|
byte *_bitVars;
|
|
|
|
bool _v0ObjectIndex; // V0 Use object index, instead of object number
|
|
bool _v0ObjectInInventory; // V0 Use object number from inventory
|
|
|
|
/* Global resource tables */
|
|
int _numVariables, _numBitVariables, _numLocalObjects;
|
|
int _numGlobalObjects, _numArray, _numVerbs, _numFlObject;
|
|
int _numInventory;
|
|
int _numNewNames, _numGlobalScripts;
|
|
int _numRoomVariables;
|
|
int _numPalettes, _numSprites, _numTalkies, _numUnk;
|
|
int _HEHeapSize;
|
|
public:
|
|
int _numLocalScripts, _numImages, _numRooms, _numScripts, _numSounds; // Used by HE games
|
|
int _numCostumes; // FIXME - should be protected, used by Actor::remapActorPalette
|
|
int32 _numCharsets; // FIXME - should be protected, used by CharsetRenderer
|
|
|
|
BaseCostumeLoader *_costumeLoader;
|
|
BaseCostumeRenderer *_costumeRenderer;
|
|
|
|
int _NESCostumeSet;
|
|
void NES_loadCostumeSet(int n);
|
|
byte *_NEScostdesc, *_NEScostlens, *_NEScostoffs, *_NEScostdata;
|
|
byte _NESPatTable[2][4096];
|
|
byte _NESPalette[2][16];
|
|
byte _NESBaseTiles;
|
|
|
|
int _NESStartStrip;
|
|
|
|
protected:
|
|
int _curPalIndex;
|
|
|
|
public:
|
|
byte _currentRoom; // FIXME - should be protected but Actor::isInCurrentRoom uses it
|
|
int _roomResource; // FIXME - should be protected but Sound::pauseSounds uses it
|
|
bool _egoPositioned; // Used by Actor::putActor, hence public
|
|
|
|
FilenamePattern _filenamePattern;
|
|
|
|
Common::String generateFilename(const int room) const;
|
|
|
|
protected:
|
|
Common::KeyState _keyPressed;
|
|
bool _keyDownMap[512]; // FIXME - 512 is a guess. it's max(kbd.ascii)
|
|
|
|
Common::Point _mouse;
|
|
Common::Point _virtualMouse;
|
|
|
|
uint16 _mouseAndKeyboardStat;
|
|
byte _leftBtnPressed, _rightBtnPressed;
|
|
|
|
/**
|
|
* Last time runInputScript was run (measured in terms of OSystem::getMillis()).
|
|
* This is currently only used for Indy3 mac to detect "double clicks".
|
|
*/
|
|
uint32 _lastInputScriptTime;
|
|
|
|
/** The bootparam, to be passed to the script 1, the bootscript. */
|
|
int _bootParam;
|
|
|
|
// Various options useful for debugging
|
|
bool _dumpScripts;
|
|
bool _hexdumpScripts;
|
|
bool _showStack;
|
|
uint16 _debugMode;
|
|
|
|
// Save/Load class - some of this may be GUI
|
|
byte _saveLoadFlag, _saveLoadSlot;
|
|
uint32 _lastSaveTime;
|
|
bool _saveTemporaryState;
|
|
char _saveLoadFileName[32];
|
|
char _saveLoadName[32];
|
|
|
|
bool saveState(Common::OutSaveFile *out, bool writeHeader = true);
|
|
bool saveState(int slot, bool compat);
|
|
bool loadState(int slot, bool compat);
|
|
virtual void saveOrLoad(Serializer *s);
|
|
void saveLoadResource(Serializer *ser, int type, int index); // "Obsolete"
|
|
void saveResource(Serializer *ser, int type, int index);
|
|
void loadResource(Serializer *ser, int type, int index);
|
|
|
|
Common::String makeSavegameName(int slot, bool temporary) const {
|
|
return makeSavegameName(_targetName, slot, temporary);
|
|
}
|
|
|
|
int getKeyState(int key);
|
|
|
|
public:
|
|
static Common::String makeSavegameName(const Common::String &target, int slot, bool temporary);
|
|
|
|
bool getSavegameName(int slot, Common::String &desc);
|
|
void listSavegames(bool *marks, int num);
|
|
|
|
void requestSave(int slot, const char *name);
|
|
void requestLoad(int slot);
|
|
|
|
// thumbnail + info stuff
|
|
public:
|
|
Graphics::Surface *loadThumbnailFromSlot(int slot) {
|
|
return loadThumbnailFromSlot(_targetName.c_str(), slot);
|
|
}
|
|
static Graphics::Surface *loadThumbnailFromSlot(const char *target, int slot);
|
|
|
|
bool loadInfosFromSlot(int slot, InfoStuff *stuff) {
|
|
return loadInfosFromSlot(_targetName.c_str(), slot, stuff);
|
|
}
|
|
static bool loadInfosFromSlot(const char *target, int slot, InfoStuff *stuff);
|
|
|
|
protected:
|
|
void saveInfos(Common::WriteStream* file);
|
|
static bool loadInfos(Common::SeekableReadStream *file, InfoStuff *stuff);
|
|
|
|
int32 _engineStartTime;
|
|
int32 _pauseStartTime;
|
|
|
|
protected:
|
|
/* Script VM - should be in Script class */
|
|
uint32 _localScriptOffsets[1024];
|
|
const byte *_scriptPointer, *_scriptOrgPointer;
|
|
byte _opcode, _currentScript;
|
|
const byte * const *_lastCodePtr;
|
|
int _resultVarNumber, _scummStackPos;
|
|
int _vmStack[150];
|
|
|
|
OpcodeEntry _opcodes[256];
|
|
|
|
virtual void setupOpcodes() = 0;
|
|
void executeOpcode(byte i);
|
|
const char *getOpcodeDesc(byte i);
|
|
|
|
void initializeLocals(int slot, int *vars);
|
|
int getScriptSlot();
|
|
|
|
void startScene(int room, Actor *a, int b);
|
|
void startManiac();
|
|
|
|
public:
|
|
void runScript(int script, bool freezeResistant, bool recursive, int *lvarptr, int cycle = 0);
|
|
void stopScript(int script);
|
|
void nukeArrays(byte scriptSlot);
|
|
|
|
protected:
|
|
void runObjectScript(int script, int entry, bool freezeResistant, bool recursive, int *vars, int slot = -1, int cycle = 0);
|
|
void runScriptNested(int script);
|
|
void executeScript();
|
|
void updateScriptPtr();
|
|
virtual void runInventoryScript(int i);
|
|
void inventoryScriptIndy3Mac();
|
|
void checkAndRunSentenceScript();
|
|
void runExitScript();
|
|
void runEntryScript();
|
|
void runAllScripts();
|
|
void freezeScripts(int scr);
|
|
void unfreezeScripts();
|
|
|
|
bool isScriptInUse(int script) const;
|
|
bool isRoomScriptRunning(int script) const;
|
|
bool isScriptRunning(int script) const;
|
|
|
|
void killAllScriptsExceptCurrent();
|
|
void killScriptsAndResources();
|
|
void decreaseScriptDelay(int amount);
|
|
|
|
void stopObjectCode();
|
|
void stopObjectScript(int script);
|
|
|
|
void getScriptBaseAddress();
|
|
void getScriptEntryPoint();
|
|
int getVerbEntrypoint(int obj, int entry);
|
|
|
|
byte fetchScriptByte();
|
|
virtual uint fetchScriptWord();
|
|
virtual int fetchScriptWordSigned();
|
|
uint fetchScriptDWord();
|
|
int fetchScriptDWordSigned();
|
|
void ignoreScriptWord() { fetchScriptWord(); }
|
|
void ignoreScriptByte() { fetchScriptByte(); }
|
|
virtual void getResultPos();
|
|
void setResult(int result);
|
|
void push(int a);
|
|
int pop();
|
|
virtual int readVar(uint var);
|
|
virtual void writeVar(uint var, int value);
|
|
|
|
void beginCutscene(int *args);
|
|
void endCutscene();
|
|
void abortCutscene();
|
|
void beginOverride();
|
|
void endOverride();
|
|
|
|
void copyScriptString(byte *dst);
|
|
int resStrLen(const byte *src) const;
|
|
void doSentence(int c, int b, int a);
|
|
|
|
/* Should be in Resource class */
|
|
BaseScummFile *_fileHandle;
|
|
uint32 _fileOffset;
|
|
public:
|
|
/** The name of the (macintosh/rescumm style) container file, if any. */
|
|
Common::String _containerFile;
|
|
|
|
bool openFile(BaseScummFile &file, const Common::String &filename, bool resourceFile = false);
|
|
|
|
protected:
|
|
int _resourceHeaderSize;
|
|
byte _resourceMapper[128];
|
|
byte *_heV7DiskOffsets;
|
|
uint32 *_heV7RoomIntOffsets;
|
|
const byte *_resourceLastSearchBuf; // FIXME: need to put it to savefile?
|
|
uint32 _resourceLastSearchSize; // FIXME: need to put it to savefile?
|
|
|
|
virtual void allocateArrays();
|
|
void openRoom(int room);
|
|
void closeRoom();
|
|
void deleteRoomOffsets();
|
|
virtual void readRoomsOffsets();
|
|
void askForDisk(const char *filename, int disknum); // TODO: Use Common::String
|
|
bool openResourceFile(const Common::String &filename, byte encByte); // TODO: Use Common::String
|
|
|
|
void loadPtrToResource(int type, int i, const byte *ptr);
|
|
virtual void readResTypeList(int id);
|
|
// void allocResTypeData(int id, uint32 tag, int num, const char *name, int mode);
|
|
// byte *createResource(int type, int index, uint32 size);
|
|
int loadResource(int type, int i);
|
|
// void nukeResource(int type, int i);
|
|
int getResourceSize(int type, int idx);
|
|
|
|
public:
|
|
byte *getResourceAddress(int type, int i);
|
|
virtual byte *getStringAddress(int i);
|
|
byte *getStringAddressVar(int i);
|
|
void ensureResourceLoaded(int type, int i);
|
|
int getResourceRoomNr(int type, int index);
|
|
|
|
protected:
|
|
int readSoundResource(int index);
|
|
int readSoundResourceSmallHeader(int index);
|
|
bool isResourceInUse(int type, int i) const;
|
|
|
|
virtual void setupRoomSubBlocks();
|
|
virtual void resetRoomSubBlocks();
|
|
|
|
virtual void clearRoomObjects();
|
|
virtual void resetRoomObjects();
|
|
virtual void resetRoomObject(ObjectData *od, const byte *room, const byte *searchptr = NULL);
|
|
|
|
virtual void readArrayFromIndexFile();
|
|
virtual void readMAXS(int blockSize) = 0;
|
|
virtual void readGlobalObjects();
|
|
virtual void readIndexFile();
|
|
virtual void readIndexBlock(uint32 block, uint32 itemsize);
|
|
virtual void loadCharset(int i);
|
|
void nukeCharset(int i);
|
|
|
|
int _lastLoadedRoom;
|
|
public:
|
|
const byte *findResourceData(uint32 tag, const byte *ptr);
|
|
const byte *findResource(uint32 tag, const byte *ptr);
|
|
int getResourceDataSize(const byte *ptr) const;
|
|
void dumpResource(const char *tag, int index, const byte *ptr, int length = -1);
|
|
|
|
public:
|
|
/* Should be in Object class */
|
|
byte OF_OWNER_ROOM;
|
|
int getInventorySlot();
|
|
int findInventory(int owner, int index);
|
|
int getInventoryCount(int owner);
|
|
|
|
protected:
|
|
byte *_objectOwnerTable, *_objectRoomTable, *_objectStateTable;
|
|
int _numObjectsInRoom;
|
|
|
|
public:
|
|
uint32 *_classData;
|
|
|
|
protected:
|
|
void markObjectRectAsDirty(int obj);
|
|
virtual void loadFlObject(uint object, uint room);
|
|
void nukeFlObjects(int min, int max);
|
|
int findFlObjectSlot();
|
|
int findLocalObjectSlot();
|
|
void addObjectToInventory(uint obj, uint room);
|
|
void updateObjectStates();
|
|
public:
|
|
bool getClass(int obj, int cls) const; // Used in actor.cpp, hence public
|
|
protected:
|
|
void putClass(int obj, int cls, bool set);
|
|
int getState(int obj);
|
|
void putState(int obj, int state);
|
|
void setObjectState(int obj, int state, int x, int y);
|
|
int getOwner(int obj) const;
|
|
void putOwner(int obj, int owner);
|
|
void setOwnerOf(int obj, int owner);
|
|
void clearOwnerOf(int obj);
|
|
int getObjectRoom(int obj) const;
|
|
int getObjX(int obj);
|
|
int getObjY(int obj);
|
|
void getObjectXYPos(int object, int &x, int &y) { int dir; getObjectXYPos(object, x, y, dir); }
|
|
void getObjectXYPos(int object, int &x, int &y, int &dir);
|
|
int getObjOldDir(int obj);
|
|
int getObjNewDir(int obj);
|
|
int getObjectIndex(int object) const;
|
|
int getObjectImageCount(int object);
|
|
int whereIsObjectInventory(int object);
|
|
int whereIsObject(int object) const;
|
|
int findObject(int x, int y);
|
|
void findObjectInRoom(FindObjectInRoom *fo, byte findWhat, uint object, uint room);
|
|
public:
|
|
int getObjectOrActorXY(int object, int &x, int &y); // Used in actor.cpp, hence public
|
|
protected:
|
|
int getDist(int x, int y, int x2, int y2);
|
|
int getObjActToObjActDist(int a, int b); // Not sure how to handle
|
|
const byte *getObjOrActorName(int obj); // these three..
|
|
void setObjectName(int obj);
|
|
|
|
void addObjectToDrawQue(int object);
|
|
void removeObjectFromDrawQue(int object);
|
|
void clearDrawObjectQueue();
|
|
void processDrawQue();
|
|
|
|
virtual void clearDrawQueues();
|
|
|
|
uint32 getOBCDOffs(int object) const;
|
|
byte *getOBCDFromObject(int obj);
|
|
const byte *getOBIMFromObjectData(const ObjectData &od);
|
|
const byte *getObjectImage(const byte *ptr, int state);
|
|
virtual int getObjectIdFromOBIM(const byte *obim);
|
|
|
|
protected:
|
|
/* Should be in Verb class */
|
|
uint16 _verbMouseOver;
|
|
int8 _userPut;
|
|
uint16 _userState;
|
|
|
|
virtual void handleMouseOver(bool updateInventory);
|
|
virtual void redrawVerbs();
|
|
virtual void checkExecVerbs();
|
|
|
|
void verbMouseOver(int verb);
|
|
int findVerbAtPos(int x, int y) const;
|
|
virtual void drawVerb(int verb, int mode);
|
|
virtual void runInputScript(int clickArea, int val, int mode);
|
|
void restoreVerbBG(int verb);
|
|
void drawVerbBitmap(int verb, int x, int y);
|
|
int getVerbSlot(int id, int mode) const;
|
|
void killVerb(int slot);
|
|
void setVerbObject(uint room, uint object, uint verb);
|
|
|
|
public:
|
|
bool isValidActor(int id) const;
|
|
|
|
/* Should be in Actor class */
|
|
Actor *derefActor(int id, const char *errmsg = 0) const;
|
|
Actor *derefActorSafe(int id, const char *errmsg) const;
|
|
|
|
protected:
|
|
void walkActors();
|
|
void playActorSounds();
|
|
void redrawAllActors();
|
|
void setActorRedrawFlags();
|
|
void putActors();
|
|
void showActors();
|
|
void resetV1ActorTalkColor();
|
|
void resetActorBgs();
|
|
virtual void processActors();
|
|
void processUpperActors();
|
|
virtual int getActorFromPos(int x, int y);
|
|
|
|
public:
|
|
/* Actor talking stuff */
|
|
byte _actorToPrintStrFor, _V1TalkingActor;
|
|
int _sentenceNum;
|
|
SentenceTab _sentence[NUM_SENTENCE];
|
|
StringTab _string[6];
|
|
byte _haveMsg;
|
|
int16 _talkDelay;
|
|
int _NES_lastTalkingActor;
|
|
int _NES_talkColor;
|
|
|
|
virtual void actorTalk(const byte *msg);
|
|
void stopTalk();
|
|
int getTalkingActor(); // Wrapper around VAR_TALK_ACTOR for V1 Maniac
|
|
void setTalkingActor(int variable);
|
|
|
|
// Generic costume code
|
|
bool isCostumeInUse(int i) const;
|
|
|
|
Common::Rect _actorClipOverride; // HE specific
|
|
|
|
protected:
|
|
/* Should be in Graphics class? */
|
|
uint16 _screenB, _screenH;
|
|
public:
|
|
int _roomHeight, _roomWidth;
|
|
int _screenHeight, _screenWidth;
|
|
VirtScreen _virtscr[4]; // Virtual screen areas
|
|
CameraData camera; // 'Camera' - viewport
|
|
|
|
int _screenStartStrip, _screenEndStrip;
|
|
int _screenTop;
|
|
|
|
Common::RenderMode _renderMode;
|
|
uint8 _bitDepth;
|
|
|
|
protected:
|
|
ColorCycle _colorCycle[16]; // Palette cycles
|
|
uint8 _colorUsedByCycle[256];
|
|
|
|
uint32 _ENCD_offs, _EXCD_offs;
|
|
uint32 _CLUT_offs, _EPAL_offs;
|
|
uint32 _IM00_offs, _PALS_offs;
|
|
|
|
//ender: fullscreen
|
|
bool _fullRedraw, _bgNeedsRedraw;
|
|
bool _screenEffectFlag, _completeScreenRedraw;
|
|
bool _disableFadeInEffect;
|
|
|
|
struct {
|
|
int hotspotX, hotspotY, width, height;
|
|
byte animate, animateIndex;
|
|
int8 state;
|
|
} _cursor;
|
|
|
|
// HACK Double the array size to handle 16-bit images.
|
|
// this should be dynamically allocated based on game depth instead.
|
|
byte _grabbedCursor[16384];
|
|
byte _currentCursor;
|
|
|
|
byte _newEffect, _switchRoomEffect2, _switchRoomEffect;
|
|
bool _doEffect;
|
|
|
|
bool _snapScroll;
|
|
public:
|
|
bool isLightOn() const;
|
|
|
|
byte _currentLights;
|
|
int getCurrentLights() const;
|
|
|
|
protected:
|
|
void initScreens(int b, int h);
|
|
void initVirtScreen(VirtScreenNumber slot, int top, int width, int height, bool twobufs, bool scrollable);
|
|
void initBGBuffers(int height);
|
|
void initCycl(const byte *ptr); // Color cycle
|
|
|
|
void decodeNESBaseTiles();
|
|
|
|
void drawObject(int obj, int arg);
|
|
void drawRoomObjects(int arg);
|
|
void drawRoomObject(int i, int arg);
|
|
void drawBox(int x, int y, int x2, int y2, int color);
|
|
|
|
void moveScreen(int dx, int dy, int height);
|
|
|
|
void restoreBackground(Common::Rect rect, byte backcolor = 0);
|
|
void redrawBGStrip(int start, int num);
|
|
virtual void redrawBGAreas();
|
|
|
|
void cameraMoved();
|
|
void setCameraAtEx(int at);
|
|
virtual void setCameraAt(int pos_x, int pos_y);
|
|
virtual void setCameraFollows(Actor *a, bool setCamera = false);
|
|
virtual void moveCamera();
|
|
virtual void panCameraTo(int x, int y);
|
|
void clampCameraPos(Common::Point *pt);
|
|
void actorFollowCamera(int act);
|
|
|
|
const byte *getPalettePtr(int palindex, int room);
|
|
|
|
void setC64Palette();
|
|
void setNESPalette();
|
|
void setAmigaPalette();
|
|
void setHercPalette();
|
|
void setCGAPalette();
|
|
void setEGAPalette();
|
|
void setV1Palette();
|
|
|
|
void resetPalette();
|
|
|
|
void setCurrentPalette(int pal);
|
|
void setRoomPalette(int pal, int room);
|
|
virtual void setPaletteFromPtr(const byte *ptr, int numcolor = -1);
|
|
virtual void setPalColor(int index, int r, int g, int b);
|
|
void setDirtyColors(int min, int max);
|
|
const byte *findPalInPals(const byte *pal, int index);
|
|
void swapPalColors(int a, int b);
|
|
virtual void copyPalColor(int dst, int src);
|
|
void cyclePalette();
|
|
void stopCycle(int i);
|
|
virtual void palManipulateInit(int resID, int start, int end, int time);
|
|
void palManipulate();
|
|
public:
|
|
uint8 *getHEPaletteSlot(uint16 palSlot);
|
|
uint16 get16BitColor(uint8 r, uint8 g, uint8 b);
|
|
int remapPaletteColor(int r, int g, int b, int threshold); // Used by Actor::remapActorPalette
|
|
protected:
|
|
void moveMemInPalRes(int start, int end, byte direction);
|
|
void setShadowPalette(int slot, int redScale, int greenScale, int blueScale, int startColor, int endColor);
|
|
void setShadowPalette(int redScale, int greenScale, int blueScale, int startColor, int endColor, int start, int end);
|
|
virtual void darkenPalette(int redScale, int greenScale, int blueScale, int startColor, int endColor);
|
|
|
|
void setCursorFromBuffer(const byte *ptr, int width, int height, int pitch);
|
|
|
|
public:
|
|
void markRectAsDirty(VirtScreenNumber virt, int left, int right, int top, int bottom, int dirtybit = 0);
|
|
void markRectAsDirty(VirtScreenNumber virt, const Common::Rect& rect, int dirtybit = 0) {
|
|
markRectAsDirty(virt, rect.left, rect.right, rect.top, rect.bottom, dirtybit);
|
|
}
|
|
protected:
|
|
// Screen rendering
|
|
byte *_compositeBuf;
|
|
byte *_herculesBuf;
|
|
byte *_fmtownsBuf;
|
|
virtual void drawDirtyScreenParts();
|
|
void updateDirtyScreen(VirtScreenNumber slot);
|
|
void drawStripToScreen(VirtScreen *vs, int x, int w, int t, int b);
|
|
void ditherCGA(byte *dst, int dstPitch, int x, int y, int width, int height) const;
|
|
|
|
public:
|
|
VirtScreen *findVirtScreen(int y);
|
|
byte *getMaskBuffer(int x, int y, int z);
|
|
|
|
protected:
|
|
void fadeIn(int effect);
|
|
void fadeOut(int effect);
|
|
void setScrollBuffer();
|
|
|
|
void unkScreenEffect6();
|
|
void transitionEffect(int a);
|
|
void dissolveEffect(int width, int height);
|
|
void scrollEffect(int dir);
|
|
|
|
protected:
|
|
bool _shakeEnabled;
|
|
uint _shakeFrame;
|
|
void setShake(int mode);
|
|
|
|
int _drawObjectQueNr;
|
|
byte _drawObjectQue[200];
|
|
|
|
/* For each of the 410 screen strips, gfxUsageBits contains a
|
|
* bitmask. The lower 80 bits each correspond to one actor and
|
|
* signify if any part of that actor is currently contained in
|
|
* that strip.
|
|
*
|
|
* If the leftmost bit is set, the strip (background) is dirty
|
|
* needs to be redrawn.
|
|
*
|
|
* The second leftmost bit is set by removeBlastObject() and
|
|
* restoreBackground(), but I'm not yet sure why.
|
|
*/
|
|
uint32 gfxUsageBits[410 * 3];
|
|
|
|
void upgradeGfxUsageBits();
|
|
void setGfxUsageBit(int strip, int bit);
|
|
void clearGfxUsageBit(int strip, int bit);
|
|
bool testGfxUsageBit(int strip, int bit);
|
|
bool testGfxAnyUsageBits(int strip);
|
|
bool testGfxOtherUsageBits(int strip, int bit);
|
|
|
|
public:
|
|
byte _roomPalette[256];
|
|
byte *_shadowPalette;
|
|
bool _skipDrawObject;
|
|
int _voiceMode;
|
|
|
|
// HE specific
|
|
byte _HEV7ActorPalette[256];
|
|
uint8 *_hePalettes;
|
|
uint16 _hePaletteSlot;
|
|
|
|
protected:
|
|
int _shadowPaletteSize;
|
|
byte _currentPalette[3 * 256];
|
|
byte _darkenPalette[3 * 256];
|
|
|
|
int _palDirtyMin, _palDirtyMax;
|
|
|
|
byte _palManipStart, _palManipEnd;
|
|
uint16 _palManipCounter;
|
|
byte *_palManipPalette;
|
|
byte *_palManipIntermediatePal;
|
|
|
|
bool _haveActorSpeechMsg;
|
|
bool _useTalkAnims;
|
|
uint16 _defaultTalkDelay;
|
|
int _tempMusic;
|
|
int _saveSound;
|
|
bool _native_mt32;
|
|
bool _enable_gs;
|
|
MidiDriverFlags _musicType;
|
|
bool _copyProtection;
|
|
|
|
public:
|
|
uint16 _extraBoxFlags[65];
|
|
|
|
byte getNumBoxes();
|
|
byte *getBoxMatrixBaseAddr();
|
|
int getNextBox(byte from, byte to);
|
|
|
|
void setBoxFlags(int box, int val);
|
|
void setBoxScale(int box, int b);
|
|
|
|
bool checkXYInBoxBounds(int box, int x, int y);
|
|
|
|
BoxCoords getBoxCoordinates(int boxnum);
|
|
|
|
byte getMaskFromBox(int box);
|
|
Box *getBoxBaseAddr(int box);
|
|
byte getBoxFlags(int box);
|
|
int getBoxScale(int box);
|
|
|
|
int getScale(int box, int x, int y);
|
|
int getScaleFromSlot(int slot, int x, int y);
|
|
|
|
protected:
|
|
// Scaling slots/items
|
|
struct ScaleSlot {
|
|
int x1, y1, scale1;
|
|
int x2, y2, scale2;
|
|
};
|
|
ScaleSlot _scaleSlots[20];
|
|
void setScaleSlot(int slot, int x1, int y1, int scale1, int x2, int y2, int scale2);
|
|
void setBoxScaleSlot(int box, int slot);
|
|
void convertScaleTableToScaleSlot(int slot);
|
|
|
|
void createBoxMatrix();
|
|
bool areBoxesNeighbours(int i, int j);
|
|
|
|
/* String class */
|
|
public:
|
|
CharsetRenderer *_charset;
|
|
byte _charsetColorMap[16];
|
|
|
|
/**
|
|
* All text is normally rendered into this overlay surface. Then later
|
|
* drawStripToScreen() composits it over the game graphics.
|
|
*/
|
|
Graphics::Surface _textSurface;
|
|
int _textSurfaceMultiplier;
|
|
|
|
protected:
|
|
byte _charsetColor;
|
|
byte _charsetData[23][16];
|
|
|
|
int _charsetBufPos;
|
|
byte _charsetBuffer[512];
|
|
|
|
bool _keepText;
|
|
|
|
int _nextLeft, _nextTop;
|
|
|
|
void restoreCharsetBg();
|
|
void clearCharsetMask();
|
|
void clearTextSurface();
|
|
|
|
virtual void initCharset(int charset);
|
|
|
|
virtual void printString(int m, const byte *msg);
|
|
|
|
virtual bool handleNextCharsetCode(Actor *a, int *c);
|
|
virtual void CHARSET_1();
|
|
void drawString(int a, const byte *msg);
|
|
void debugMessage(const byte *msg);
|
|
void showMessageDialog(const byte *msg);
|
|
|
|
virtual int convertMessageToString(const byte *msg, byte *dst, int dstSize);
|
|
int convertIntMessage(byte *dst, int dstSize, int var);
|
|
int convertVerbMessage(byte *dst, int dstSize, int var);
|
|
int convertNameMessage(byte *dst, int dstSize, int var);
|
|
int convertStringMessage(byte *dst, int dstSize, int var);
|
|
|
|
public:
|
|
Common::Language _language; // Accessed by a hack in NutRenderer::loadFont
|
|
|
|
// Used by class ScummDialog:
|
|
virtual void translateText(const byte *text, byte *trans_buff);
|
|
|
|
// Somewhat hackish stuff for 2 byte support (Chinese/Japanese/Korean)
|
|
bool _useCJKMode;
|
|
int _2byteHeight;
|
|
int _2byteWidth;
|
|
byte _newLineCharacter;
|
|
byte *get2byteCharPtr(int idx);
|
|
|
|
protected:
|
|
byte *_2byteFontPtr;
|
|
|
|
public:
|
|
|
|
/* Scumm Vars */
|
|
byte VAR_KEYPRESS;
|
|
byte VAR_SYNC;
|
|
byte VAR_EGO;
|
|
byte VAR_CAMERA_POS_X;
|
|
byte VAR_HAVE_MSG;
|
|
byte VAR_ROOM;
|
|
byte VAR_OVERRIDE;
|
|
byte VAR_MACHINE_SPEED;
|
|
byte VAR_ME;
|
|
byte VAR_NUM_ACTOR;
|
|
byte VAR_CURRENT_LIGHTS;
|
|
byte VAR_CURRENTDRIVE;
|
|
byte VAR_CURRENTDISK;
|
|
byte VAR_TMR_1;
|
|
byte VAR_TMR_2;
|
|
byte VAR_TMR_3;
|
|
byte VAR_MUSIC_TIMER;
|
|
byte VAR_ACTOR_RANGE_MIN;
|
|
byte VAR_ACTOR_RANGE_MAX;
|
|
byte VAR_CAMERA_MIN_X;
|
|
byte VAR_CAMERA_MAX_X;
|
|
byte VAR_TIMER_NEXT;
|
|
byte VAR_VIRT_MOUSE_X;
|
|
byte VAR_VIRT_MOUSE_Y;
|
|
byte VAR_ROOM_RESOURCE;
|
|
byte VAR_LAST_SOUND;
|
|
byte VAR_CUTSCENEEXIT_KEY;
|
|
byte VAR_OPTIONS_KEY;
|
|
byte VAR_TALK_ACTOR;
|
|
byte VAR_CAMERA_FAST_X;
|
|
byte VAR_SCROLL_SCRIPT;
|
|
byte VAR_ENTRY_SCRIPT;
|
|
byte VAR_ENTRY_SCRIPT2;
|
|
byte VAR_EXIT_SCRIPT;
|
|
byte VAR_EXIT_SCRIPT2;
|
|
byte VAR_VERB_SCRIPT;
|
|
byte VAR_SENTENCE_SCRIPT;
|
|
byte VAR_INVENTORY_SCRIPT;
|
|
byte VAR_CUTSCENE_START_SCRIPT;
|
|
byte VAR_CUTSCENE_END_SCRIPT;
|
|
byte VAR_CHARINC;
|
|
byte VAR_WALKTO_OBJ;
|
|
byte VAR_DEBUGMODE;
|
|
byte VAR_HEAPSPACE;
|
|
byte VAR_RESTART_KEY;
|
|
byte VAR_PAUSE_KEY;
|
|
byte VAR_MOUSE_X;
|
|
byte VAR_MOUSE_Y;
|
|
byte VAR_TIMER;
|
|
byte VAR_TIMER_TOTAL;
|
|
byte VAR_SOUNDCARD;
|
|
byte VAR_VIDEOMODE;
|
|
byte VAR_MAINMENU_KEY;
|
|
byte VAR_FIXEDDISK;
|
|
byte VAR_CURSORSTATE;
|
|
byte VAR_USERPUT;
|
|
byte VAR_SOUNDRESULT;
|
|
byte VAR_TALKSTOP_KEY;
|
|
byte VAR_FADE_DELAY;
|
|
byte VAR_NOSUBTITLES;
|
|
|
|
// V5+
|
|
byte VAR_SOUNDPARAM;
|
|
byte VAR_SOUNDPARAM2;
|
|
byte VAR_SOUNDPARAM3;
|
|
byte VAR_INPUTMODE;
|
|
byte VAR_MEMORY_PERFORMANCE;
|
|
byte VAR_VIDEO_PERFORMANCE;
|
|
byte VAR_ROOM_FLAG;
|
|
byte VAR_GAME_LOADED;
|
|
byte VAR_NEW_ROOM;
|
|
|
|
// V4/V5
|
|
byte VAR_V5_TALK_STRING_Y;
|
|
|
|
// V6+
|
|
byte VAR_ROOM_WIDTH;
|
|
byte VAR_ROOM_HEIGHT;
|
|
byte VAR_SUBTITLES;
|
|
byte VAR_V6_EMSSPACE;
|
|
|
|
// V7/V8 specific variables
|
|
byte VAR_CAMERA_POS_Y;
|
|
byte VAR_CAMERA_MIN_Y;
|
|
byte VAR_CAMERA_MAX_Y;
|
|
byte VAR_CAMERA_THRESHOLD_X;
|
|
byte VAR_CAMERA_THRESHOLD_Y;
|
|
byte VAR_CAMERA_SPEED_X;
|
|
byte VAR_CAMERA_SPEED_Y;
|
|
byte VAR_CAMERA_ACCEL_X;
|
|
byte VAR_CAMERA_ACCEL_Y;
|
|
byte VAR_CAMERA_DEST_X;
|
|
byte VAR_CAMERA_DEST_Y;
|
|
byte VAR_CAMERA_FOLLOWED_ACTOR;
|
|
|
|
// V7/V8 specific variables
|
|
byte VAR_VERSION_KEY;
|
|
byte VAR_DEFAULT_TALK_DELAY;
|
|
byte VAR_CUSTOMSCALETABLE;
|
|
byte VAR_BLAST_ABOVE_TEXT;
|
|
byte VAR_VOICE_MODE;
|
|
byte VAR_MUSIC_BUNDLE_LOADED;
|
|
byte VAR_VOICE_BUNDLE_LOADED;
|
|
|
|
byte VAR_LEFTBTN_DOWN; // V7/V8
|
|
byte VAR_RIGHTBTN_DOWN; // V7/V8
|
|
byte VAR_LEFTBTN_HOLD; // V6/V72HE/V7/V8
|
|
byte VAR_RIGHTBTN_HOLD; // V6/V72HE/V7/V8
|
|
byte VAR_SAVELOAD_SCRIPT; // V6/V7 (not HE)
|
|
byte VAR_SAVELOAD_SCRIPT2; // V6/V7 (not HE)
|
|
|
|
// V6/V7 specific variables (FT & Sam & Max specific)
|
|
byte VAR_CHARSET_MASK;
|
|
|
|
// V6 specific variables
|
|
byte VAR_V6_SOUNDMODE;
|
|
|
|
// V1/V2 specific variables
|
|
byte VAR_CHARCOUNT;
|
|
byte VAR_VERB_ALLOWED;
|
|
byte VAR_ACTIVE_VERB;
|
|
byte VAR_ACTIVE_OBJECT1;
|
|
byte VAR_ACTIVE_OBJECT2;
|
|
|
|
// HE specific variables
|
|
byte VAR_REDRAW_ALL_ACTORS; // Used in setActorRedrawFlags()
|
|
byte VAR_SKIP_RESET_TALK_ACTOR; // Used in setActorCostume()
|
|
|
|
byte VAR_SOUND_CHANNEL; // Used in o_startSound()
|
|
byte VAR_TALK_CHANNEL; // Used in startHETalkSound()
|
|
byte VAR_SOUNDCODE_TMR; // Used in processSoundCode()
|
|
byte VAR_RESERVED_SOUND_CHANNELS; // Used in findFreeSoundChannel()
|
|
|
|
byte VAR_MAIN_SCRIPT; // Used in scummLoop()
|
|
|
|
byte VAR_SCRIPT_CYCLE; // Used in runScript()/runObjectScript()
|
|
byte VAR_NUM_SCRIPT_CYCLES; // Used in runAllScripts()
|
|
|
|
// Exists both in V7 and in V72HE:
|
|
byte VAR_NUM_GLOBAL_OBJS;
|
|
};
|
|
|
|
} // End of namespace Scumm
|
|
|
|
#endif
|