Commit Graph

770 Commits

Author SHA1 Message Date
Torbjörn Andersson
1928a7ba38 Silenced some cppcheck warnings.
svn-id: r47427
2010-01-21 23:05:33 +00:00
Max Horn
f720d99b0a Switch Mixer::playInputStream to use DisposeAfterUse::Flag
svn-id: r47182
2010-01-08 22:09:43 +00:00
Max Horn
0cf53b025d Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
svn-id: r47180
2010-01-08 22:07:35 +00:00
Torbjörn Andersson
c4106653a8 Fixed bug #2924968, "AGI: Can't click "cancel" in Save/Restore Game Menu". This
regression was probably introduced with r45260, "AGI: cleanup
GfxMgr::testButton".

svn-id: r47030
2010-01-05 18:52:39 +00:00
Eugene Sandulenko
c36caea501 Use new ADGF flag, ADGF_USEEXTRAASTITLE for AGI Fanmade games for giving them
more user-friendly names.

svn-id: r46948
2010-01-03 21:09:26 +00:00
Eugene Sandulenko
8ad5694cb1 Reduce header dependencies for AGI engine.
svn-id: r46942
2010-01-03 20:15:44 +00:00
Eugene Sandulenko
f6880b9821 md5 from bug #2809149: "AGI: SQ1: Checksum of Space Quest 1 Version 1.1A"
svn-id: r46472
2009-12-21 22:40:52 +00:00
Eugene Sandulenko
b1adefc487 Sorted game entries
svn-id: r46469
2009-12-21 22:24:22 +00:00
Max Horn
df651bf20f Added Doxygen comments for the various engine namespaces (currently mostly without details; help filling these out is welcome)
svn-id: r46128
2009-11-24 22:10:14 +00:00
Max Horn
51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Johannes Schickel
56181a475c Change "=" to ":=" in some module.mk files for consistency.
svn-id: r45364
2009-10-24 21:55:53 +00:00
Matthew Hoops
91dcca89b1 Fix another regression that didn't append data in safeStrcat.
svn-id: r45296
2009-10-21 01:23:05 +00:00
Matthew Hoops
6114381b4c Fix a regression in agiSprintf.
svn-id: r45295
2009-10-21 01:01:23 +00:00
Max Horn
95c572c8b9 AGI: Cleanup AgiEngine::agiSprintf
svn-id: r45267
2009-10-20 12:23:21 +00:00
Max Horn
66fae7bc8a AGI: Change g_useChorus to SoundMgr::_useChorus, and add FIXME comment about it always being true (so maybe it can be removed?)
svn-id: r45266
2009-10-20 12:22:30 +00:00
Max Horn
5ce23633e2 AGI: Oopify LZW decoder
svn-id: r45265
2009-10-20 12:21:43 +00:00
Max Horn
3a1495f247 AGI: Make scancodeTable const
svn-id: r45261
2009-10-20 11:13:42 +00:00
Max Horn
3fe7363d40 AGI: cleanup GfxMgr::testButton
svn-id: r45260
2009-10-20 11:13:22 +00:00
Max Horn
50435d6bae AGI: Turn g_tickTimer & g_mouse into members of class AgiEngine resp. AgiBase
svn-id: r45259
2009-10-20 11:13:00 +00:00
Max Horn
c0f6657797 AGI: cleanup
svn-id: r45256
2009-10-19 22:52:01 +00:00
Max Horn
03953bf292 AGI: Remove some global vars
svn-id: r45255
2009-10-19 22:51:37 +00:00
Max Horn
2bbf708dea Introduced new type Common::DisposeAfterUse::Flag
svn-id: r45233
2009-10-18 19:41:59 +00:00
Max Horn
b846fd6aca cleanup
svn-id: r44810
2009-10-09 09:41:53 +00:00
Max Horn
42120ed626 Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though
svn-id: r44793
2009-10-08 19:41:38 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +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
a983c88e37 Reverted parts of revisions #44292, #44293, #44295 and #44296, to prevent warnings and issues in compilers which don't support NORETURN
svn-id: r44312
2009-09-24 17:24:42 +00:00
Filippos Karapetis
fe7a64d467 Removed some warnings about unreachable code
svn-id: r44292
2009-09-24 09:01:33 +00:00
Johannes Schickel
c05c5fca03 Commit modified patch from bug report #2849084 "AGI: Crash when saving fallback-matched game" to fix that bug.
svn-id: r44273
2009-09-23 13:17:08 +00:00
Jordi Vilalta Prat
768f480e58 Implement getDebugger() in AGI
svn-id: r43840
2009-08-30 21:43:07 +00:00
Johannes Schickel
fd88dbacd7 Properly uninitialize timer used in AgiEngine.
svn-id: r43623
2009-08-22 00:18:22 +00:00
Kari Salminen
2bd1f51d92 Possible fix for #2828330 (AGI: KQ1: Fast text box). If doesn't break anything else then should go to the branch-1-0-0 too, but haven't had the time to do much testing yet - thus committing to the trunk first.
svn-id: r43523
2009-08-18 21:37:31 +00:00
Eugene Sandulenko
0d4fc81698 Fix bug #2838551: "PSP: AGI games are unbearably slow"
svn-id: r43452
2009-08-16 19:48:13 +00:00
Kari Salminen
b6a0f3e371 Fix for bug #2835581 (KQ3: Game Crash When Leaving Tavern as Fly):
- Use AGI version 0x3149 instead of the previous 0x3086
- Makes ESC pause the game (Identical to original in this respect)

svn-id: r43414
2009-08-15 19:04:21 +00:00
Kari Salminen
9931fb6a44 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.

svn-id: r43025
2009-08-03 17:18:18 +00:00
Joost Peters
7cf43b9dda Fix AGI crashes on 64-bit systems that require alignment
svn-id: r43011
2009-08-02 21:22:46 +00:00
Johannes Schickel
7e71865e91 Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
2009-07-25 12:59:46 +00:00
Eugene Sandulenko
0932497cca Fix bug #2798797: "AGI: larry 1 doesn't restart after dying"
svn-id: r42663
2009-07-22 16:26:53 +00:00
Eugene Sandulenko
483a4c0eeb Move functions from agi.cpp to more appropriate files.
svn-id: r42662
2009-07-22 15:55:33 +00:00
Eugene Sandulenko
88395007fb Fix bug #2823759: "AGI: PQ1 help not showing the first time you press F1"
svn-id: r42659
2009-07-22 12:24:55 +00:00
Eugene Sandulenko
7c1df4cbff Fix bug #2823762: "AGI: PQ1 All function keys are broken after restart"
svn-id: r42658
2009-07-22 11:48:51 +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
Kari Salminen
3a3b71622a Remove ioFailed() usage from AGI engine.
svn-id: r42495
2009-07-14 23:03:40 +00:00
Kari Salminen
9a2785bc3b Partially fix automatic restarting of AGI games (Addresses bug #2798797 ('AGI: larry 1 doesn't restart after dying') but doesn't fully fix it. There seems to be more to the problem still. Automatic restarting after dying of an STD doesn't take away the STD-condition and Larry continues to die in a loop).
svn-id: r42482
2009-07-14 15:02:17 +00:00
Max Horn
a6b57dc3a9 - Added GCC_PRINTF attribute to several funcs where it makes sense
- change some constants from double to float, to avoid "loss of precision due to implicit conversion" warnings
- removed duplicate prototypes for some funcs
- fixed some "increases required alignment of target type" warnings

svn-id: r42009
2009-07-01 20:51:04 +00:00
Filippos Karapetis
47d4794876 Fixed a warning about an uninitialized variable
svn-id: r41660
2009-06-19 07:56:30 +00:00
Eugene Sandulenko
c96ec85dbb Preliminary support for CoCo3 music.
svn-id: r41618
2009-06-17 23:16:21 +00:00
Eugene Sandulenko
3bfca53709 Disable music for CoCo3 games. It has different format.
svn-id: r41598
2009-06-16 21:59:20 +00:00
Eugene Sandulenko
8bcdd8d7f6 Run AGIMOUSE hack as a side effect always
svn-id: r41536
2009-06-15 07:06:52 +00:00