ILLUSIONS: Implement more script opcodes and related functions
This commit is contained in:
parent
e881db0732
commit
48ef46c02d
12 changed files with 176 additions and 6 deletions
|
@ -212,4 +212,10 @@ byte *ScriptResource::getThreadCode(uint32 threadId) {
|
|||
return _data + _codeOffsets[(threadId & 0xFFFF) - 1];
|
||||
}
|
||||
|
||||
ProgInfo *ScriptResource::getProgInfo(uint32 index) {
|
||||
if (index > 0 && index <= _progInfosCount)
|
||||
return &_progInfos[index - 1];
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // End of namespace Illusions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue