Eugene Sandulenko
968f959158
AGI: Fix bug #2960567 .
...
Bug #2960567 : "AGI: Ego partly erased in Load/Save thumbnails".
Force screen redraw after confirmation window is closed.
svn-id: r49734
2010-06-15 10:28:21 +00:00
Eugene Sandulenko
4c617e8282
AGI: Fixed named fanmade games detection.
...
svn-id: r49733
2010-06-15 10:28:01 +00:00
Eugene Sandulenko
316e171e67
AGI: Fix bug #2959630 .
...
Bug #2959630 : "LSL1: Security in blackjack" fixed by partially
reverting r41241. Do not clear prompt without on disabling input.
svn-id: r49732
2010-06-15 10:27:42 +00:00
Eugene Sandulenko
14205bdbc0
AGI: add more status-related debug output.
...
svn-id: r49731
2010-06-15 10:27:23 +00:00
Eugene Sandulenko
1c1fb7c9ac
AGI: add optional parameter to 'room' debug console command.
...
svn-id: r49730
2010-06-15 10:27:04 +00:00
Eugene Sandulenko
4046cd8457
AGI: debugger. Improved usage output, added safeguards to runopcode command
...
svn-id: r49729
2010-06-15 10:26:46 +00:00
Eugene Sandulenko
560809e42c
Split out detection tables for AGI engine
...
svn-id: r49693
2010-06-15 10:15:08 +00:00
Eugene Sandulenko
4d517ed0e9
Extended advancedDetector with depth parameter.
...
Now AD can search nested directories. By default it is turned off,
but there is new parameter to ADParameters struct. Usually value
of 2 is good enough for all purposes.
svn-id: r49653
2010-06-14 14:50:23 +00:00
Eugene Sandulenko
f5f104f550
Fix bug #2880229 : KQ4 AGI not recognized
...
svn-id: r49021
2010-05-13 12:39:01 +00:00
Max Horn
970745e60c
Move DebugChannel related code to new header
...
svn-id: r48935
2010-05-04 11:59:22 +00:00
Max Horn
b3e404109c
Move initGraphics and initCommonGFX from to new header.
...
These functions are only used internally be Engine subclasses, and
by moving them to a separate header we can reduce indirect header
dependencies.
svn-id: r48934
2010-05-04 11:58:12 +00:00
Max Horn
5568a8473b
Get rid of Engine::_gameDataDir.
...
This greatly reduces indirect dependencies on several header files
from common.
svn-id: r48933
2010-05-04 11:56:52 +00:00
Max Horn
460d69e885
COMMON: Move DebugChannel stuff into a new DebugMan singleton
...
svn-id: r48821
2010-04-27 21:40:52 +00:00
Max Horn
a1840bd573
AUDIO: Rename Mixer::playInputStream to playStream
...
svn-id: r48637
2010-04-12 09:14:17 +00:00
Max Horn
92c896d883
Patch #2973290 : Semicolon cleanup
...
svn-id: r48359
2010-03-22 20:28:08 +00:00
Max Horn
cac0ac66e2
COMMON: Get rid of Common::StringList
...
svn-id: r48287
2010-03-18 15:54:40 +00:00
Max Horn
c934642bdb
COMMON: Move typedef StringList from str.h to new header str-array.h
...
This removes the dependency on array.h from str.h.
Also, begun migration from the confusing type name "StringList" to
the more appropriate StringArray.
svn-id: r48282
2010-03-18 15:09:24 +00:00
Max Horn
d78dba3bca
COMMON: Move Common::RandomSource to common/random.*
...
svn-id: r48279
2010-03-18 15:07:11 +00:00
Torbjörn Andersson
65585f6433
Silenced some harmless cppcheck warnings about unreachable code after a return.
...
In this case, it was always a break after a return in a switch case. There are
similar cases which cppcheck didn't detect, and a couple of cases where we have
a break after a continue in a switch case (where the continue refers to an
outer loop), but I didn't touch those. Not yet, at least.
svn-id: r48218
2010-03-10 06:39:23 +00:00
Yotam Barnoy
ef330ed9b4
Patch for bug 2943361 by littleboy, adding full kb modifier support to all engines + GUI and proper keypad handling
...
svn-id: r48101
2010-02-21 04:04:13 +00:00
Torbjörn Andersson
c5be030077
Silenced some more cppcheck warnings.
...
svn-id: r47785
2010-01-31 23:28:12 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
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
Eugene Sandulenko
d925104b6a
Added sanity checking to stopSound() and a bit more debug output
...
svn-id: r41501
2009-06-13 22:48:16 +00:00
Eugene Sandulenko
2ffe5ed25e
Added set of CoCo3 AGI games
...
svn-id: r41452
2009-06-11 15:45:52 +00:00
Max Horn
ed44e68f9d
AGI: Fixed typo in game name ;)
...
svn-id: r41331
2009-06-07 12:37:16 +00:00
Eugene Sandulenko
a0fa307fc5
Added CoCo3 version of SQ1
...
svn-id: r41284
2009-06-06 18:22:43 +00:00
Eugene Sandulenko
79d082f9c2
Added couple of newly discovered fanmade AGI games.
...
svn-id: r41283
2009-06-06 18:22:18 +00:00
Filippos Karapetis
e572af84aa
Removed unused variable
...
svn-id: r41279
2009-06-06 18:02:16 +00:00
Eugene Sandulenko
1bd6f6c99f
Added game GUI options to advancedDetector and updated all engines
...
svn-id: r41272
2009-06-06 17:56:41 +00:00
Eugene Sandulenko
0057d9b9b2
Add guard check to set.key opcode.
...
svn-id: r41260
2009-06-06 17:48:30 +00:00
Eugene Sandulenko
ea3373708c
Correct implementation for set.key opcode. Fixes #2605104 : "AGI: Manhunter, F3 hotkey dosent work", removed number of hacks
...
svn-id: r41259
2009-06-06 17:48:09 +00:00
Eugene Sandulenko
d6a4dbeb1d
Implement fence.mouse opcode
...
svn-id: r41258
2009-06-06 17:47:29 +00:00
Eugene Sandulenko
8792628a46
Implement hide.mouse and show.mouse opcodes
...
svn-id: r41257
2009-06-06 17:46:55 +00:00
Eugene Sandulenko
9ff714a2db
Implement allow.menu opcode
...
svn-id: r41256
2009-06-06 17:46:38 +00:00
Eugene Sandulenko
c393144b19
Implement hold.key and release.key opcodes
...
svn-id: r41255
2009-06-06 17:46:19 +00:00
Eugene Sandulenko
1a321a2064
Cleanup
...
svn-id: r41254
2009-06-06 17:45:52 +00:00
Eugene Sandulenko
2113060c43
Implement cancel.line. Consider obj.status.f implemented
...
svn-id: r41253
2009-06-06 17:45:06 +00:00
Eugene Sandulenko
72d25455e0
Implement scummvm.ini flag features for AGI engine
...
svn-id: r41252
2009-06-06 17:44:46 +00:00
Eugene Sandulenko
45764de138
Cleanup
...
svn-id: r41251
2009-06-06 17:44:24 +00:00
Eugene Sandulenko
2eb7e914e8
Fix bug #2026605 : "SQ2: Have to wait after dying to do anything."
...
svn-id: r41250
2009-06-06 17:43:51 +00:00
Eugene Sandulenko
ed797c0709
Implement debug commands "room" and "bt"
...
svn-id: r41249
2009-06-06 17:43:26 +00:00
Eugene Sandulenko
531b96bbbe
Remove duplicated amiga busy cursor
...
svn-id: r41248
2009-06-06 17:43:04 +00:00
Eugene Sandulenko
c5f41b29fa
Stop abusing game flag.
...
svn-id: r41247
2009-06-06 17:42:37 +00:00
Eugene Sandulenko
5a07ba9c57
Disable save/load when original did not allow
...
svn-id: r41246
2009-06-06 17:42:12 +00:00
Eugene Sandulenko
b26ae991f8
Store and compare MD5s in the saves
...
svn-id: r41245
2009-06-06 17:41:50 +00:00
Eugene Sandulenko
a5d762c029
Fix bug #1745954 : "GR: Intro "jumpy" in parts (Amiga version)"
...
svn-id: r41244
2009-06-06 17:41:29 +00:00
Eugene Sandulenko
26d8b2bb72
Fix bug #2721940 : "AGI: Gold Rush! Restart Option differs from original"
...
svn-id: r41243
2009-06-06 17:40:56 +00:00
Eugene Sandulenko
3ba873c72b
Fix bug #2026570 : "SQ2: Prompt disappears when it shouldn't"
...
svn-id: r41242
2009-06-06 17:40:27 +00:00
Eugene Sandulenko
a7049e5b3d
Fix implementation of prevent.input. This fixes SQ2 intro
...
svn-id: r41241
2009-06-06 17:40:09 +00:00
Eugene Sandulenko
194ab100c7
Fix bug #2434187 : "SQ2: message not displayed, or vanishes too quickly"
...
svn-id: r41240
2009-06-06 17:39:42 +00:00