Added missing return statements.
svn-id: r41473
This commit is contained in:
parent
5172c83200
commit
20d75f6ec7
2 changed files with 8 additions and 5 deletions
|
@ -98,6 +98,8 @@ bool EMCInterpreter::callback(Common::IFFChunk &chunk) {
|
|||
default:
|
||||
warning("Unexpected chunk '%s' of size %d found in file '%s'", Common::ID2string(chunk._type), chunk._size, _filename);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool EMCInterpreter::load(const char *filename, EMCData *scriptData, const Common::Array<const Opcode*> *opcodes) {
|
||||
|
@ -116,10 +118,10 @@ bool EMCInterpreter::load(const char *filename, EMCData *scriptData, const Commo
|
|||
Common::Functor1Mem< Common::IFFChunk &, bool, EMCInterpreter > c(this, &EMCInterpreter::callback);
|
||||
iff.parse(c);
|
||||
|
||||
if (!scriptData->ordr)
|
||||
if (!_scriptData->ordr)
|
||||
error("No ORDR chunk found in file: '%s'", filename);
|
||||
|
||||
if (!scriptData->data)
|
||||
if (!_scriptData->data)
|
||||
error("No DATA chunk found in file: '%s'", filename);
|
||||
|
||||
if (stream->err())
|
||||
|
@ -127,10 +129,10 @@ bool EMCInterpreter::load(const char *filename, EMCData *scriptData, const Commo
|
|||
|
||||
delete stream;
|
||||
|
||||
scriptData->sysFuncs = opcodes;
|
||||
_scriptData->sysFuncs = opcodes;
|
||||
|
||||
strncpy(scriptData->filename, filename, 13);
|
||||
scriptData->filename[12] = 0;
|
||||
strncpy(_scriptData->filename, filename, 13);
|
||||
_scriptData->filename[12] = 0;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -140,6 +140,7 @@ bool TIMInterpreter::callback(Common::IFFChunk &chunk) {
|
|||
warning("Unexpected chunk '%s' of size %d found in file '%s'", Common::ID2string(chunk._type), chunk._size, _filename);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
TIM *TIMInterpreter::load(const char *filename, const Common::Array<const TIMOpcode *> *opcodes) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue