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
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
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
a5aedb73be
TINSEL: Avoid global constructor for clickPos
...
svn-id: r48841
2010-04-28 22:23:00 +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
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
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Johannes Schickel
0d995c5920
Rename all "Adlib" uses to "AdLib" to match the real name of the sound card / company.
...
Check this for reference:
http://en.wikipedia.org/wiki/Ad_Lib,_Inc .
http://www.crossfire-designs.de/images/articles/soundcards/adlib.jpg (note the upper left of the card)
This commit does not touch "adlib" and "ADLIB" uses!
Also it does not update all the SCUMM detection entries, which still use "Adlib".
svn-id: r47279
2010-01-12 21:07:56 +00:00
Max Horn
c8873d8492
Changed MidiDriver::createMidi to take a MidiDriverType instead of an int
...
svn-id: r46316
2009-12-09 18:12:51 +00:00
Max Horn
5cf868b757
TINSEL: Turn config code into a simple C++ class
...
svn-id: r45617
2009-11-02 21:56:29 +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
Max Horn
05508d8dcd
TINSEL: Change MemoryAllocFixed to return a (kind of fake) MEM_NODE pointer; add MemoryDeinit()
...
svn-id: r45426
2009-10-27 00:36:56 +00:00
Max Horn
91ba886e01
TINSEL: Move Common::List instances mouseButtons & keypresses into TinselEngine.
...
Global C++ objects are not portable, as their constructors / destructors may
never be called.
svn-id: r45283
2009-10-20 19:12:54 +00:00
Max Horn
00822d5661
TINSEL: Move BMV player code into a new BMVPlayer class
...
svn-id: r45269
2009-10-20 14:06:17 +00:00
Max Horn
5b514a9bd1
TINSEL: Start cleanup BMV code
...
svn-id: r45268
2009-10-20 14:05:35 +00:00
Johannes Schickel
c50940bbf4
Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
...
svn-id: r44266
2009-09-23 00:15:00 +00:00
Johannes Schickel
b33b90ecd0
Made AGOS, DRASCULA, GOB, GROOVIE, MADE, SCUMM and TINSEL properly stop CD audio playback on engine quit. (This only problem affected playback from CD, not from ripped audio files)
...
svn-id: r43512
2009-08-18 15:31:26 +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
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
Johannes Schickel
4aec580f91
Formatting.
...
svn-id: r41588
2009-06-16 19:26:44 +00:00
Fabio Battaglia
b905602b4c
tinsel: check only english.txt for DW1 psx version detection, and use recursive "SearchMan.addDirectory()" to obtain subdirs for Discworld PSX datafiles
...
svn-id: r41587
2009-06-16 18:58:21 +00:00
Fabio Battaglia
be22438648
tinsel: workaround for "missing red dragon in Act IV" bug in Discworld PSX
...
svn-id: r41068
2009-05-31 14:41:54 +00:00
Fabio Battaglia
6fd48c3354
tinsel: add default paths needed by Discworld PSX, now the user shouldn't need to move files around
...
svn-id: r40901
2009-05-26 08:41:25 +00:00
Johannes Schickel
db62ae8b33
Till we specify an common behavior when loading a game state on startup fails / the user tries to load an non existing save slot, change Tinsel to start up the game as if no slot was specified. (This 'fixes' bug #2796215 "DW: Black screen when loading via command line")
...
svn-id: r40890
2009-05-25 13:40:46 +00:00
Paul Gilbert
4a2e5bb793
Re-introduced the ability to skip the title scenes in Discworld 1. Since the exact scene numbers differed between language versions, this new version simply relies on skipping the first four screens - hopefully, none of the various versions will have any extra title screens.
...
svn-id: r40196
2009-04-29 10:37:00 +00:00
Paul Gilbert
86debbd679
Added code to enable Discworld 2 to play directly from the CD (only the first CD - Cd swap still doesn't work) or from files copied to the hard disk without the .smp/txt/idx files being properly renamed (again only for the first Cd).
...
svn-id: r40141
2009-04-25 06:42:01 +00:00
Max Horn
9cbed926cd
Moved Tinsel::Serializer to Common::Serializer, so that I can use it in the SCI engine
...
svn-id: r39428
2009-03-15 20:30:57 +00:00
Kostas Nakos
a718713925
only center vertically in DW2
...
svn-id: r39052
2009-03-01 21:03:46 +00:00
Max Horn
dd98126423
Engines: Fused several init&go methods into a single run method
...
svn-id: r39003
2009-03-01 04:42:46 +00:00
Max Horn
7cb437b56f
Renamed SpecialDebugLevel to DebugChannel
...
svn-id: r36142
2009-01-30 05:10:24 +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
cb8ffaf3a9
Implemented loading from the command line and the GMM for tinsel (kSupportsLoadingDuringStartup)
...
svn-id: r35958
2009-01-20 17:30:23 +00:00
Filippos Karapetis
85d4063000
Some WIP code for the kSupportsLoadingDuringStartup engine feature
...
svn-id: r35932
2009-01-20 00:33:26 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Johannes Schickel
cba892a61b
Disable loading from command line again, it seems it only worked for saves, which did a cd change in DW2 and I only tested those by chance.
...
svn-id: r35456
2008-12-21 00:48:23 +00:00
Johannes Schickel
f3f93da8b8
- Added comment about error check when loading save on startup
...
- Updated code to properly test the last three digits of save filenames instead of only the last two
svn-id: r35455
2008-12-20 23:15:46 +00:00
Johannes Schickel
c3041ad99b
Implemented support for loading saves from launcher / via command line.
...
svn-id: r35454
2008-12-20 23:11:56 +00:00
Filippos Karapetis
cbdb105d8e
- Save games are now listed from oldest to newest in the GMM load dialog for tinsel games, like in other engines
...
- Added some disabled code for saving through the GMM (still incomplete)
svn-id: r35316
2008-12-12 15:48:38 +00:00
Sven Hesse
faf8059cac
This should make the US version work
...
svn-id: r35243
2008-12-04 19:42:42 +00:00
Filippos Karapetis
d8e656a217
- Added back the English V1 CD version of DW1 (with *.gra files)
...
- Added the US version of DW2
- Added placeholders for the Hebrew, Hungarian and Japanese versions of DW2 (not sure if they're correct)
svn-id: r35222
2008-12-03 18:54:22 +00:00
Jordi Vilalta Prat
d34865d054
DW2: Add support for the Italian/Spanish release
...
svn-id: r35211
2008-12-02 22:22:23 +00:00
Johannes Schickel
702b7be594
Should fix compilation on BE machines.
...
svn-id: r35206
2008-12-02 17:53:58 +00:00
Filippos Karapetis
025cebdf6d
Disabled the workaround to skip the title screens of DW1 for now, as it can cause crashes with certain versions of the game
...
svn-id: r35205
2008-12-02 17:22:30 +00:00
Filippos Karapetis
af945ac788
Merged the tinsel 2 engine with tinsel 1. Both Discworld 1 and Discworld 2 should be completable
...
svn-id: r35196
2008-12-01 20:35:36 +00:00
Johannes Schickel
5a0556f09c
Committed my patch #2123680 "SDL: Backend transaction / rollback support".
...
svn-id: r35062
2008-11-14 22:08:10 +00:00
Max Horn
40136f2590
Switched various Engine APIs to use Common::Error
...
svn-id: r34916
2008-11-06 17:05:54 +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