Commit Graph

870 Commits

Author SHA1 Message Date
Max Horn
1d4c82885d DEBUGGER: Simplify how our console debugger works / is used
* Remove _isAttached member var and isAttached method
* Engines now always call the onFrame method; whether it does
  something is decided by the debugger class resp. its subclasses
* Make detach() protected instead of private, so that subclasses
  can invoke it
* Remove _detach_now member var (call detach() instead).
* Rename _frame_countdown to _frameCountdown and properly
  document it.
* Add more doxygen comments
* Cleanup

svn-id: r50963
2010-07-17 18:38:42 +00:00
Torbjörn Andersson
aa631a64dc Removed unused variable. I believe thread->_instructionOffset serves the same
purpose that 'addr' was inteded to.

svn-id: r50951
2010-07-16 23:23:30 +00:00
Torbjörn Andersson
ae1afee564 The standalone MIDI files for one of the re-releases of Inherit the Earth are
General MIDI, not MT-32. (I hope this doesn't break anything else.)

svn-id: r50927
2010-07-16 03:32:59 +00:00
Torbjörn Andersson
3cb59d237e Don't close the MIDI driver twice. It's unnecessary, and some of our drivers
may crash. (The ALSA one did, until a few minutes ago.)

svn-id: r50871
2010-07-14 04:34:57 +00:00
Max Horn
00dfb4db29 SAGA: Fix warning on systems where enum's are unsigned
svn-id: r50685
2010-07-05 16:08:43 +00:00
Florian Kagerer
c35e350531 AUDIO: get rid of MDT_PREFER_MIDI since it should be sufficient to either select MDT_PREFER_MT32 or MDT_PREFER_GM
svn-id: r50288
2010-06-25 20:51:57 +00:00
Max Horn
bbad3f333a Patch #1956501: "GUI/LAUNCHER: Midi device selection"
svn-id: r50128
2010-06-21 21:36:36 +00:00
Filippos Karapetis
cccfed3ba3 Cleanup
svn-id: r50004
2010-06-18 02:30:19 +00:00
Max Horn
651e2760a3 Fix spelling, cleanup
svn-id: r49843
2010-06-15 12:33:20 +00:00
Eugene Sandulenko
44a39ffbc6 AdvancedDetector: Add new parameter directoryGlobs.
Without this parameter mass detection gave tons of false alarms.
Use globbing for narrowing down the depth search.

svn-id: r49788
2010-06-15 10:59:23 +00:00
Eugene Sandulenko
9d4d191baa SAGA: fix timers.
Second parameter to intallTimerCallback is in _micro_seconds.
Correct calls which assumed  milliseconds.

svn-id: r49771
2010-06-15 10:50:49 +00:00
Eugene Sandulenko
fa2b0a0dd2 SAGA: Fix bug #2827504.
Bug #2827504: "ITE: Music restarts on every background change in
credits". We errorneously were stopping music on each scene,
though it appeared only with Adlib music.

svn-id: r49728
2010-06-15 10:26:29 +00:00
Eugene Sandulenko
51c22b39c8 SAGA: Fix bug #2928923.
Bug #2928923: 'ITE: Graphic Glitches during racoon death "Cut Scene"'.
Disable actor drawing for these scenes. A long standing bug in
original.

svn-id: r49727
2010-06-15 10:26:10 +00:00
Eugene Sandulenko
fead2bb719 SAGA: Fix bug #2886130.
Bug #2886130: "ITE: Graphic Glitches during Cat Tribe Celebration".
We redraw statusbar for this scene. Bug in original.

svn-id: r49726
2010-06-15 10:25:50 +00:00
Eugene Sandulenko
d1c34efad9 SAGA: Fix bug #2886141.
Bug #2886141: "ITE: Cumulative Snoring sounds in Prince's Bedroom".
Implemented safeguard against running same looped sound more
than once.

svn-id: r49725
2010-06-15 10:25:34 +00:00
Eugene Sandulenko
0b8f8d7a24 SAGA: Fix bug #2886151.
Bug #2886151: "ITE: Mouse stops responding at Boar Castle" fixed
by implementing a workaround. It is a script bug in original.

svn-id: r49724
2010-06-15 10:25:13 +00:00
Eugene Sandulenko
6d2c916c34 SAGA: Add debug output for sfLockUser()
svn-id: r49723
2010-06-15 10:24:55 +00:00
Eugene Sandulenko
7746321ed6 SAGA: Fix bug #1970191.
Bug #1970191: "IHNM: Psychic Profile problem". Still there is a
slight artefact. When the profile has 2 pages and is skipped,
there are two fade-ins in a row. It could be checked by analysing
event queue.

svn-id: r49698
2010-06-15 10:16:53 +00:00
Eugene Sandulenko
5d72a614ec SAGA: Add more thread-related output.
svn-id: r49697
2010-06-15 10:16:32 +00:00
Eugene Sandulenko
723cb6c0f0 SAGA: Moved more code under ENABLE_IHNM
svn-id: r49696
2010-06-15 10:16:13 +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
Filippos Karapetis
0492bd6aa6 SAGA: Music code cleanup. The music driver is now placed inside the MusicPlayer class, instead of the SagaEngine class. Split the functionality that the music parser should handle from the functionality that the music driver should handle. Also, fixed a bug in MusicDriver::send() (the notes off signal was sent to unallocated channels, not allocated ones)
svn-id: r49607
2010-06-12 18:20:22 +00:00
Max Horn
767edc91fa OSYSTEM: Get rid of kFeatureAutoComputeDirtyRects
svn-id: r49388
2010-06-02 00:52:57 +00:00
Filippos Karapetis
512435893b Started simplifying and removing a lot of unused code from the SAGA Mac resource loader, to be ultimately replaced by the common Mac resource loader
svn-id: r49082
2010-05-18 15:16:53 +00:00
Filippos Karapetis
6499ddff8e Added back video skipping in SAGA2 with the escape key or left mouse button
svn-id: r49080
2010-05-18 14:57:02 +00:00
Matthew Hoops
11cbdd0318 Committing the rest of the VideoDecoder Rewrite from patch #2963496.
svn-id: r49079
2010-05-18 14:17:24 +00:00
Filippos Karapetis
80acb21a56 Added automatic detection of the IHNM demo
svn-id: r49047
2010-05-16 10:36:21 +00:00
Filippos Karapetis
b57bab8e3b Added automatic detection for the non-interactive ITE demos
svn-id: r49046
2010-05-16 10:23:44 +00:00
Max Horn
2149a2383d Reduce indirect header dependencies further
svn-id: r48936
2010-05-04 12:00:16 +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
c75ff0515e SAGA: Avoid global constructor for pieceOrigins array
svn-id: r48842
2010-04-28 22:23:34 +00:00
Max Horn
a1840bd573 AUDIO: Rename Mixer::playInputStream to playStream
svn-id: r48637
2010-04-12 09:14:17 +00:00
Ori Avtalion
aee05cd21d Remove extra semicolons
svn-id: r48457
2010-04-01 15:03:08 +00:00
Max Horn
ed6602502f SAGA: Fix ScriptThread::operator=; some tweaking
svn-id: r48398
2010-03-24 23:19:27 +00:00
Max Horn
cac0ac66e2 COMMON: Get rid of Common::StringList
svn-id: r48287
2010-03-18 15:54:40 +00:00
Max Horn
d78dba3bca COMMON: Move Common::RandomSource to common/random.*
svn-id: r48279
2010-03-18 15:07:11 +00:00
Andrew Kurushin
802ed6eb40 Fix bug #2963556: SAGA: Memory leaks #2
isomap-malloc to Common::Array conversation

svn-id: r48232
2010-03-10 21:44:58 +00:00
Johannes Schickel
80fae481b0 Fix a valgrind warning.
It is *not* a good idea to pass a reference to a list entry to List::remove.
Since List::remove will remove *all* occurances of that list entry, it will
also invaldiate the reference, resulting in invalid memory reads after the
entry has been removed from the list, when List::remove will continue to
search the rest of the list for more occurances of the same entry.

svn-id: r48225
2010-03-10 20:33:38 +00:00
Andrew Kurushin
91e7d27468 Fix bug #2963556: SAGA: Memory leaks
svn-id: r48224
2010-03-10 17:05:25 +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
Filippos Karapetis
3f2471418d Fixed the music in some Mac versions of ITE and disabled some unused code for the original DOS demo of ITE
svn-id: r48139
2010-02-26 22:24:48 +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
Johannes Schickel
fe35d372da - Rename FlacStream to FLACStream.
- Rename makeFlacStream to makeFLACStream.

svn-id: r47846
2010-02-03 09:42:11 +00:00
Max Horn
21e1cc4cf8 Switch makeADPCMStream to DisposeAfterUse::Flag
svn-id: r47736
2010-01-31 02:11:41 +00:00
Johannes Schickel
a505d32eff Replace use of Audio::makeRawMemoryStream by Audio::makeRawStream.
svn-id: r47716
2010-01-30 15:26:54 +00:00
Johannes Schickel
ec3f58e626 - Mark makeRawDiskStream factory as deprecated.
- Introduce two new makeRawStream factories, one is using RawStreamBlockList instead of an RawDiskStreamAudioBlock array.

svn-id: r47713
2010-01-30 15:17:57 +00:00
Filippos Karapetis
8606982590 Moved the Shorten decoder inside the SAGA engine, as it's the only one using it (and it's still unfinished, too)
svn-id: r47592
2010-01-27 08:40:48 +00:00
Max Horn
1565f14bc1 Moved audio stream implementations (for MP3, FLAC, etc.) to new dir sound/decoders/
svn-id: r47579
2010-01-26 22:48:45 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00