diff options
author | Eugene Sandulenko | 2004-06-01 06:38:36 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-06-01 06:38:36 +0000 |
commit | 654099e7d658973b399b17b34a48eb805dcd5979 (patch) | |
tree | 7f1ee994f5fce667c881374d3b74710cc1b2da94 /scumm/intern.h | |
parent | 4c8c01fa41ed04609310eebf259d277d9c153c85 (diff) | |
download | scummvm-rg350-654099e7d658973b399b17b34a48eb805dcd5979.tar.gz scummvm-rg350-654099e7d658973b399b17b34a48eb805dcd5979.tar.bz2 scummvm-rg350-654099e7d658973b399b17b34a48eb805dcd5979.zip |
Preliminary versions of HE opcodes kernelGetFunctions and
kernelSetFunctions. Somewhat buggy.
svn-id: r13914
Diffstat (limited to 'scumm/intern.h')
-rw-r--r-- | scumm/intern.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index 0166ad1a0d..5638d40600 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -543,7 +543,17 @@ protected: OpcodeProcV6he proc; const char *desc; }; - + struct vsUnpackCtx { + uint8 mask; + uint8 num; + uint8 b; + uint8 *ptr; + }; + struct vsPackCtx { + int size; + uint8 buf[256]; + }; + const OpcodeEntryV6he *_opcodesV6he; File _hFileTable[17]; @@ -559,8 +569,12 @@ protected: void redimArray(int arrayId, int newX, int newY, int d); int readFileToArray(int slot, int32 size); void writeFileFromArray(int slot, int resID); - int kernelGetFunctions1(byte *addr, int arg1, int arg2, int arg3, int agr4); - void kernelSetFunctions1(byte *addr); + int virtScreenSave(byte *dst, int x1, int y1, int x2, int y2); + int virtScreenSavePack(byte *dst, byte *src, int len, int unk); + void virtScreenSavePackBuf(vsPackCtx *ctx, uint8 *dst, int len); + void virtScreenSavePackByte(vsPackCtx *ctx, uint8 *dst, int len, uint8 b); + void virtScreenLoad(int resIdx, int x1, int y1, int x2, int y2); + uint8 virtScreenLoadUnpack(vsUnpackCtx *ctx, byte *data); void seekFilePos(int slot, int offset, int mode); byte stringLen(byte *); virtual void decodeParseString(int a, int b); |