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
This commit is contained in:
Eugene Sandulenko 2004-11-15 03:03:48 +00:00
parent 183a11153e
commit 4295a17c23
18 changed files with 292 additions and 154 deletions

View file

@ -70,14 +70,14 @@ Script::Script() {
debug(0, "Initializing scripting subsystem");
// Load script resource file context
result = GAME_GetFileContext(&_scriptContext, GAME_SCRIPTFILE, 0);
if (result != SUCCESS) {
_scriptContext = GAME_GetFileContext(GAME_SCRIPTFILE, 0);
if (_scriptContext == NULL) {
error("Couldn't get script file context");
}
// Load script LUT resource
result = GAME_GetFileContext(&s_lut_ctxt, GAME_RESOURCEFILE, 0);
if (result != SUCCESS) {
s_lut_ctxt = GAME_GetFileContext(GAME_RESOURCEFILE, 0);
if (s_lut_ctxt == NULL) {
error("Couldn't get resource file context");
}