mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
CRYO: change the definition of verifh and expand_hsq
This commit is contained in:
parent
2d3bbebc6b
commit
7b95465309
@ -4666,9 +4666,9 @@ void EdenGame::effetpix() {
|
||||
}
|
||||
|
||||
////// datfile.c
|
||||
void EdenGame::verifh(void *ptr) {
|
||||
void EdenGame::verifh(byte *ptr) {
|
||||
byte sum = 0;
|
||||
byte *head = (byte *)ptr;
|
||||
byte *head = ptr;
|
||||
|
||||
for (int8 i = 0; i < 6; i++)
|
||||
sum += *head++;
|
||||
@ -4689,7 +4689,7 @@ void EdenGame::verifh(void *ptr) {
|
||||
for (; h3; h3--)
|
||||
*data-- = *head--;
|
||||
head = data + 1;
|
||||
data = (byte *)ptr;
|
||||
data = ptr;
|
||||
Expand_hsq(head, data);
|
||||
}
|
||||
|
||||
@ -4967,14 +4967,14 @@ void EdenGame::loadpartoffile(uint16 num, void *buffer, int32 pos, int32 len) {
|
||||
h_bigfile.read(buffer, len);
|
||||
}
|
||||
|
||||
void EdenGame::Expand_hsq(void *input, void *output) {
|
||||
byte *src = (byte *)input;
|
||||
byte *dst = (byte *)output;
|
||||
byte *ptr;
|
||||
uint16 bit; // bit
|
||||
uint16 queue = 0; // queue
|
||||
uint16 len = 0;
|
||||
int16 ofs;
|
||||
void EdenGame::Expand_hsq(byte *input, byte *output) {
|
||||
byte *src = input;
|
||||
byte *dst = output;
|
||||
byte *ptr;
|
||||
uint16 bit; // bit
|
||||
uint16 queue = 0; // queue
|
||||
uint16 len = 0;
|
||||
int16 ofs;
|
||||
#define GetBit \
|
||||
bit = queue & 1; \
|
||||
queue >>= 1; \
|
||||
|
@ -276,7 +276,7 @@ private:
|
||||
void setDestRect(int16 sx, int16 sy, int16 ex, int16 ey);
|
||||
void wait(int howlong);
|
||||
void effetpix();
|
||||
void verifh(void *ptr);
|
||||
void verifh(byte *ptr);
|
||||
void openbigfile();
|
||||
void closebigfile();
|
||||
void loadRawFile(uint16 num, byte *buffer);
|
||||
@ -289,7 +289,7 @@ private:
|
||||
bool ReadDataSyncVOC(unsigned int num);
|
||||
bool ReadDataSync(uint16 num);
|
||||
void loadpartoffile(uint16 num, void *buffer, int32 pos, int32 len);
|
||||
void Expand_hsq(void *input, void *output);
|
||||
void Expand_hsq(byte *input, byte *output);
|
||||
void addInfo(byte info);
|
||||
void unlockInfo();
|
||||
void nextInfo();
|
||||
|
Loading…
x
Reference in New Issue
Block a user