Commit Graph
71 Commits
Author SHA1 Message Date
Torbjörn Andersson c64c7eb4d4 First pass at migrating from the old Reinherit console to the ScummVM
console.

Some things are likely to have broken. For instance, I believe the old
console was could be visible during gameplay, while ScummVM's is modal. So
any place where we output something to the console during gameplay should
probably be removed.

Some things I've stubbed out. Basically any code that registers a variable.

Most of the debugging commands are untested.

Syntax may have changed because of different command-line parsing. (I never
actually used the old console, so I don't know for sure. :-)

Actually, I'm not that interested in reproducing the old console commands
faithfully. What we should do now is to make the immediately useful console
stuff work. Anything that remains unimplemented should probably be removed.

svn-id: r15976
2004-12-03 19:15:44 +00:00
Max Horn 5d5a13eec7 Moved MidiDriver creation code into the MidiDriver class (as static methods), same for some other MIDI related stuff
svn-id: r15968
2004-12-02 00:33:42 +00:00
Eugene Sandulenko 99503e3a32 Fix music volume
svn-id: r15959
2004-11-29 00:17:03 +00:00
Jerome Fisher 1b638b829e Who started this trend? :)
MT-32 emulator should be handled just like all other drivers, except that it should always be considered native MT-32.

svn-id: r15952
2004-11-28 23:08:05 +00:00
Eugene Sandulenko 31e434dcf1 Fix a`ll engines. They work, though current fix is just temporary.
There are plans to add some brains to GameDetector class, which will let us
avoid passing detector to init() method.

svn-id: r15873
2004-11-24 00:14:21 +00:00
Max Horn aad9f122c0 Added Engine::init() method; added return value to Engine::go()
svn-id: r15865
2004-11-23 00:03:25 +00:00
Max Horn fa97d4ad89 Removing walkthrough stuff again (talked to aquadran about this, he had no objections)
svn-id: r15849
2004-11-20 23:49:11 +00:00
Torbjörn Andersson 9766d59b7e I'm told that the FM music file sounds terrible with MT-32 and that the
MT-32 is perfectly capable of playing General MIDI. My new guess is that
the FM file is for Adlib instead. It certainly sounds better - but quite
different - than playing the GM track through Adlib.

svn-id: r15846
2004-11-20 17:19:15 +00:00
Paweł Kołodziejski 309108430c init walkthrough dialog later
svn-id: r15841
2004-11-19 22:33:24 +00:00
Paweł Kołodziejski 734a7d3102 fixed missed ctrl key handle, and missed create() walklthrough call
svn-id: r15840
2004-11-19 22:30:18 +00:00
Paweł Kołodziejski 20e9cf6f20 added walkthrough
svn-id: r15835
2004-11-19 19:50:22 +00:00
Torbjörn Andersson d173491acc Added music to the partial IHNM intro. I think I picked the correct tune,
but I can't be absolutely sure.

I'm also not sure if I'm using the correct music data. I'm fairly sure that
the MUSICGM.RES file is the appropriate choice for "General MIDI", but I
have no way of verifying that the MUSICFM.RES is really the right choice
for MT-32. (Is either of them a good choice for Adlib, or are they both
equally bad?)

svn-id: r15831
2004-11-19 07:41:59 +00:00
Eugene Sandulenko f930782098 Make IHNM default be 1x scaler.
svn-id: r15829
2004-11-18 22:54:15 +00:00
Eugene Sandulenko 4295a17c23 o Make GAME_GetFileContext() more object-like
o Font::loadFont() now normally survives zero-length fonts as used in demos
o Removed unused SndRes::ITEVOC_Resample()
o Fixed playing of voice #4 on old DOS targets
o Implemented playing voices in VOX (Oki ADPCM) format
o Support of Win32 and Linux demos. There was old-style Win32 demo, which
  is not supported yet, same is with DOS demo.

svn-id: r15814
2004-11-15 03:03:48 +00:00
Torbjörn Andersson c55ff57fc6 Initial inventory support.
svn-id: r15723
2004-11-07 14:15:41 +00:00
Paweł Kołodziejski c7e5ab1f2d removed R_ prefix with few r_ too
svn-id: r15690
2004-10-27 21:32:28 +00:00
Eugene Sandulenko 44bd54b476 Better support of MT-32.
svn-id: r15636
2004-10-21 22:40:06 +00:00
Torbjörn Andersson ec413cc8f9 Added support for digitized music, plus some other music-related fixes.
Note that I've only tried this with the music.rsc file from the full Linux
version. It seems likely that the Mac version uses the same file format,
but I have no way of verifying this. I'm told the demos use compressed
audio, so the music files from them probably won't work yet.

svn-id: r15527
2004-10-12 11:45:53 +00:00
Chris Apers 757f2fdcef Prevent double slash in path
svn-id: r15473
2004-10-08 16:09:52 +00:00
Eugene Sandulenko 4dc49e713b Turn ObjectMap into real object.
svn-id: r15457
2004-10-07 23:02:19 +00:00
Eugene Sandulenko 29a5f6bbd3 Remove duplicated code in actor walk code.
Turn ActionMap into real object.
Rename ActionMap variables to conform our code guidelines.

svn-id: r15456
2004-10-07 22:31:39 +00:00
Torbjörn Andersson 54cec2e011 Set up file paths to handle the differences between the file layout of the
Windows and Linux versions. (TODO: Handle game detection.)

Added preliminary support for the P2_A.aif file that the Linux version
uses, where the Windows version uses p2_a.voc. Someone will have to verify
the actual format of it, and we have a silly bug in playVoice() which will
have to be fixed before things work properly.

svn-id: r15365
2004-10-01 06:45:13 +00:00
Max Horn ce8c99bf62 Rename remaining OSystem methods to match our coding guidelines
svn-id: r15332
2004-09-28 20:19:37 +00:00
Jonathan Gray d1d308ff74 R_GAMETYPE -> GID, remove unused supported flag and trim some unused bits of GAME
svn-id: r14793
2004-08-27 01:32:10 +00:00
Eugene Sandulenko 3fe739efb2 Merge SDEBUG_*, SF_* and STHREAD_* into Script class.
svn-id: r14568
2004-08-12 23:57:45 +00:00
Eugene Sandulenko 94b377ce73 Handle fades in scene load routine.
Introduce immediate events.

svn-id: r14558
2004-08-11 22:27:39 +00:00
Eugene Sandulenko 720ea20bed Moved PALANIM_* to a class.
svn-id: r14540
2004-08-10 19:20:33 +00:00
Eugene Sandulenko fe7ac87bc7 Move EVENT_* to a class.
svn-id: r14539
2004-08-10 19:00:30 +00:00
Eugene Sandulenko 632042dae4 Move CON_* to a class.
svn-id: r14538
2004-08-10 18:31:33 +00:00
Eugene Sandulenko 602cd289f3 Move INTERFACE_ to class.
svn-id: r14478
2004-08-06 01:39:17 +00:00
Eugene Sandulenko 51b5acfc9c Move SCENE_* to class.
svn-id: r14463
2004-08-04 20:28:57 +00:00
Eugene Sandulenko 11078570dc Move state static variable to appropriate class
svn-id: r14462
2004-08-04 18:07:57 +00:00
Eugene Sandulenko b197c3dac8 Move SPRITE_ to a class
svn-id: r14451
2004-08-03 01:07:34 +00:00
Eugene Sandulenko 415400f24e Move TEXT_* to SagaEngine class.
svn-id: r14450
2004-08-03 00:40:16 +00:00
Eugene Sandulenko fe1ab79bee Move FONT_* to class.
svn-id: r14449
2004-08-03 00:06:18 +00:00
Eugene Sandulenko 166b05aed4 Fix #include paths.
svn-id: r14443
2004-08-02 16:20:35 +00:00
Eugene Sandulenko 98816ad3ae Objectize actor.cpp
svn-id: r14441
2004-08-02 15:47:42 +00:00
Jonathan Gray dcf5805440 create objectMap class
svn-id: r14440
2004-08-02 15:44:18 +00:00
Jonathan Gray 632612680b move isomap into a class
svn-id: r14439
2004-08-02 14:51:48 +00:00
Jonathan Gray e4c813670f remove timer wrapper functions
svn-id: r14437
2004-08-02 12:41:40 +00:00
Joost Peters 4aaea2131e create Script class from SCRIPT_* and ScriptModule
svn-id: r14425
2004-08-01 22:48:40 +00:00
Joost Peters 48cddda4b9 move SDATA_* into seperate class
svn-id: r14424
2004-08-01 19:53:29 +00:00
Eugene Sandulenko ea694ffd68 Pass SagaEngine object to Anim and ActionMap objects
svn-id: r14422
2004-08-01 13:34:20 +00:00
Jonathan Gray c8d9018909 init _gfx in a less hacky manner
svn-id: r14420
2004-08-01 12:06:12 +00:00
Jonathan Gray 182dd48bd4 merge reinherit.h into saga.h and gfx_mod.h, note the error loading animations wasn't caused by this commit :)
svn-id: r14405
2004-08-01 01:56:22 +00:00
Eugene Sandulenko f1cfbe9065 Forgot to implement destructor for ActionMap
svn-id: r14400
2004-08-01 00:07:17 +00:00
Eugene Sandulenko d530fc7696 Objectize actionmap.cpp
svn-id: r14399
2004-08-01 00:03:45 +00:00
Eugene Sandulenko 46a1c45d70 Extended CVAR_RegisterFunc with callback object parameter.
Got rid of static structure in animation.cpp

svn-id: r14397
2004-07-31 23:33:14 +00:00
Eugene Sandulenko c5836541fe Objectize render.cpp
svn-id: r14395
2004-07-31 23:00:48 +00:00
Jonathan Gray 59c88e428b merge animation.h and animation_mod.h into a class
svn-id: r14388
2004-07-31 13:34:43 +00:00