Commit Graph

102 Commits

Author SHA1 Message Date
Martin Kiewitz
4bc01ab7d5 AGI: getflag/setflag/etc. cleanup
renamed getflag() to getFlag()
renamed setflag() to setFlag()
renamed flipflag() to flipFlag()
preagi: renamed setFlag for this engine to setWinnieFlag
2016-01-31 17:56:53 +01:00
Martin Kiewitz
0f15ec2ce8 AGI: use Common::RenderMode instead of its own
AppleIIgs + Atari ST weren't available back then in the enum.
They now are, so I can use the Common one.
2016-01-29 15:43:45 +01:00
Martin Kiewitz
8a595e7771 AGI: graphics rewrite + cleanup
- graphics code fully rewritten
- Apple IIgs font support
- Amiga Topaz support
- Word parser rewritten
- menu code rewritten
- removed forced 2 second delay on all room changes
  replaced with heuristic to detect situations, where it's required
- lots of naming cleanup
- new console commands show_map, screenobj, vmvars and vmflags
- all sorts of hacks/workarounds removed
- added SCI wait mouse cursor
- added Apple IIgs mouse cursor
- added Atari ST mouse cursor
- added Amiga/Apple IIgs transition
- added Atari ST transition
- user can select another render mode and
  use Apple IIgs palette + transition for PC versions
- inventory screen rewritten
- SetSimple command now properly implemented
- PreAGI Mickey: Sierra logo now shown
- saved games: now saving controller key mapping
  also saving automatic save data (SetSimple command)
- fixed invalid memory access when saving games (31 bytes were saved
  using Common::String c_ptr()

Special Thanks to:
- fuzzie for helping out with the Apple IIgs font + valgrind
- eriktorbjorn for helping out with valgrind
- LordHoto for figuring out the code, that caused invalid memory
  access in the original code, when saving a game
- sev for help out with reversing the Amiga transition

currently missing:
- mouse support for menu
- mouse support for system dialogs
- predictive dialog support
2016-01-29 13:22:22 +01:00
Kirben
b6995c5bd3 AGI: Enable sound by default in Mickey's Space Adventure. 2015-07-19 19:51:46 +10:00
Filippos Karapetis
b3e45ccc68 AGI: Disable/remove unused code
This is code that isn't used currently. Thanks to fingolfin for
pointing out these parts of the code
2014-12-07 15:33:11 +02:00
Johannes Schickel
daa8d57a86 ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf. 2014-05-27 02:04:07 +02:00
Johannes Schickel
6aac905dfd AGI: Make GPL headers consistent in themselves. 2014-02-18 02:39:32 +01:00
Eugene Sandulenko
1fd58f7f2e AGI: Fix bad buffer overrun. CID 1004029 2013-10-08 00:11:18 +03:00
Filippos Karapetis
ba7d71d553 AGI: doUpdate() already calls updateScreen() 2011-09-26 01:43:14 +03:00
Matthew Hoops
6f83052b40 AGI: Cleanup PreAGI console code 2011-08-15 22:24:42 -04:00
Matthew Hoops
cb43e9694b AGI: Make Mickey inherit from PreAgiEngine 2011-08-15 11:55:03 -04:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
0ce2ca4e00 COMMON: Replace MKID_BE by MKTAG
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.
2011-04-12 16:53:15 +02:00
Eugene Sandulenko
764eaa554c AGI: Fix some code analysis warnings (bug #3087825)
svn-id: r53470
2010-10-15 08:49:20 +00:00
Eugene Sandulenko
8ad5694cb1 Reduce header dependencies for AGI engine.
svn-id: r46942
2010-01-03 20:15:44 +00:00
Filippos Karapetis
04493d139e Fixed some potential memory leaks, reported by salty-horse
svn-id: r44516
2009-10-01 12:09:02 +00:00
Max Horn
8ba75fc522 Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
2009-09-30 16:16:53 +00:00
Filippos Karapetis
fe7a64d467 Removed some warnings about unreachable code
svn-id: r44292
2009-09-24 09:01:33 +00:00
Matthew Hoops
6e6d5e8b98 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.
svn-id: r42633
2009-07-20 20:59:35 +00:00
Eugene Sandulenko
93d62da652 Whitespace fixes and C++ comments
svn-id: r41239
2009-06-06 17:39:13 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Max Horn
65b5d31814 COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
2009-05-19 11:42:14 +00:00
Max Horn
ac59693be2 A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines
svn-id: r36127
2009-01-29 05:26:12 +00:00
Filippos Karapetis
7fba1e9aaf Removed unused defines, cleaned up some more defines and reduced the places where static data is read from the game's executable
svn-id: r35916
2009-01-18 22:02:22 +00:00
Filippos Karapetis
98b3046c09 Removed some unused defines in Mickey's Space Adventure, and removed a case where static data was read from the game's executable
svn-id: r35901
2009-01-18 16:41:35 +00:00
Matthew Hoops
0b50c114d8 fix quitting in Mickey's Space Adventure as well as other minor cleanup
svn-id: r35735
2009-01-05 01:40:08 +00:00
Max Horn
6a2f3dc0b9 Added new type Engine::Feature; pushed down some #include dependencies
svn-id: r34755
2008-10-06 12:48:52 +00:00
Max Horn
9b160804ab Renamed Engine::quit to Engine::shouldQuit (previously, it was easily confused with Engine::quitGame); also cleaned up engine.h a bit
svn-id: r34700
2008-09-30 12:27:38 +00:00
Max Horn
42a5aa567b Merging more of the GSoC 2008 RTL branch: AGI
svn-id: r34242
2008-09-01 17:46:05 +00:00
Filippos Karapetis
cd3a904f78 Correct fix for bug #2073159 - "MICKEY: Incomplete computer message"
svn-id: r34186
2008-08-26 12:34:05 +00:00
Christopher Page
21cd277f13 Fixed some GCC warnings
svn-id: r33647
2008-08-05 21:38:59 +00:00
Christopher Page
7f480ac571 Quit and RTL code is more modular now. EVENT_RTL no longer sets _shouldQuit, shouldQuit is only set if there's an EVENT_QUIT. EVENT_RTL and EVENT_QUIT are completely separate from each other. Engine::quit() method now checks both _shouldQuit and _shouldRTL to determine if the engine should exit. There is no longer a need for resetQuit(), so it's removed
svn-id: r33082
2008-07-16 04:22:56 +00:00
Christopher Page
3ac3e84ecf Removed an exit() call in PreAGI
svn-id: r33049
2008-07-13 22:41:32 +00:00
Christopher Page
30b1a62e81 Removed unnecessary #inlcudes
svn-id: r32984
2008-07-10 05:15:19 +00:00
Christopher Page
e808cdf7a0 Reimplemented pushEvent() and artificialEventQueue to work with Events instead of EventTypes. Reimplemented Queue as a List instead of Array. Updated AGOS, AGI, CINE, GOB, and KYRA to work with the current implementation of the GMM
svn-id: r32971
2008-07-09 02:27:05 +00:00
Christopher Page
3beccaf115 PreAGI works with the new GMM implementation
svn-id: r32956
2008-07-08 01:33:57 +00:00
Johannes Schickel
600ab40bca Changed all delete [] usages to delete[].
svn-id: r31927
2008-05-07 14:31:45 +00:00
Jordi Vilalta Prat
66e9d4f5e8 Removed trailing spaces.
svn-id: r30664
2008-01-27 19:47:41 +00:00
Kari Salminen
a493647076 Indentation
svn-id: r30478
2008-01-13 23:43:17 +00:00
Filippos Karapetis
05b28340bf Cleanup and simplification
svn-id: r30405
2008-01-11 10:59:43 +00:00
Filippos Karapetis
85b3a4a59e Added a debug command, did some cleanup
svn-id: r30351
2008-01-09 10:31:52 +00:00
Filippos Karapetis
b0f2e823e0 Cleanup of the debugger commands, added some more commands, removed now obsolete debug code
svn-id: r30350
2008-01-09 09:46:26 +00:00
Filippos Karapetis
c14d420141 Added a debug console for Mickey's Space Adventures
svn-id: r30349
2008-01-09 09:19:17 +00:00
Filippos Karapetis
f1a1254581 Renamed SAVEGAME_VERSION to MSA_SAVEGAME_VERSION
svn-id: r29770
2007-12-08 18:19:09 +00:00
Filippos Karapetis
b24f10dde0 The variables nFrame and iItem can also have negative values
svn-id: r29769
2007-12-08 18:16:30 +00:00
Filippos Karapetis
621f798241 Saving and loading in Mickey's Space Adventure should now be endian and alignment safe. Note that this breaks older saved games
svn-id: r29768
2007-12-08 17:51:23 +00:00
Filippos Karapetis
01f32b60b0 Removed some unnecessary code which was common for two cases
svn-id: r29622
2007-11-24 00:47:29 +00:00
Filippos Karapetis
e9c0276072 Minimized screen updates for Mickey's Space Adventure, and correctly set the hint for Uranus
svn-id: r29619
2007-11-23 18:28:40 +00:00
Filippos Karapetis
cd3f548407 Objects in Mickey's Space Adventure are shown correctly now
svn-id: r29612
2007-11-22 20:54:46 +00:00