AVALANCHE: update file handling in multiple files.

This commit is contained in:
uruk 2013-07-09 18:54:53 +02:00
parent a394fea15d
commit 2c0b694371
4 changed files with 10 additions and 19 deletions

View File

@ -296,7 +296,6 @@ void Celer::load_chunks(Common::String xx) {
ch.memorise = f.readByte();
if (ch.memorise) {
memos[fv].x = ch.x;
memos[fv].xl = ch.xl;
memos[fv].y = ch.y;
@ -313,8 +312,7 @@ void Celer::load_chunks(Common::String xx) {
warning("STUB: Celer::load_chunks()");
if (!ch.natural)
for (int32 i = 0; i < ch.size; i++)
memory[fv][i] = f.readByte();
f.read(memory[fv], ch.size);
} else
memos[fv].x = on_disk;
}

View File

@ -530,11 +530,9 @@ void Gyro::load_a_mouse(byte which) {
f.seek(mouse_size * 2 * (which - 1) + 134);
for (int i = 0; i < mouse_size; i++)
vmc.andpic[i] = f.readByte();
f.read(vmc.andpic, mouse_size);
for (int i = 0; i < mouse_size; i++)
vmc.xorpic[i] = f.readByte();
f.read(vmc.xorpic, mouse_size);
f.close();

View File

@ -731,8 +731,7 @@ void Lucerna::thinkabout(char z, bool th) { /* Hey!!! Get it and put it!!! *
f.seek(z * picsize + 65);
for (int16 i = 0; i < picsize; i++)
p[i] = f.readByte();
f.read(p, picsize);
_vm->_gyro.off();
@ -756,8 +755,7 @@ void Lucerna::thinkabout(char z, bool th) { /* Hey!!! Get it and put it!!! *
f.seek(fv * picsize + 65);
for (int16 i = 0; i < picsize; i++)
p[i] = f.readByte();
f.read(p, picsize);
_vm->_gyro.off();
@ -789,15 +787,14 @@ void Lucerna::load_digits() { /* Load the scoring digits & rwlites */
for (byte fv = 0; fv < 10; fv ++) {
_vm->_gyro.digit[fv] = new byte[digitsize];
for (byte i = 0; i < digitsize; i++)
_vm->_gyro.digit[fv][i] = f.readByte();
f.read(_vm->_gyro.digit[fv], digitsize);
}
for (byte ff = 0; ff < 9; ff ++) {
_vm->_gyro.digit[ff] = new byte[rwlitesize];
for (byte i = 0; i < rwlitesize; i++)
_vm->_gyro.digit[ff][i] = f.readByte();
f.read(_vm->_gyro.digit[ff], rwlitesize);
}
f.close();
}
@ -813,8 +810,7 @@ void Lucerna::toolbar() {
s = f.size() - 40;
p = new byte[s];
f.seek(40);
for (uint16 i = 0; i < s; i++)
p[i] = f.readByte();
f.read(p, s);
f.close();
/* off;*/

View File

@ -147,8 +147,7 @@ void Scrolls::geticon(int16 x, int16 y, byte which) {
f.seek(which * 426);
p = new byte[426];
for (int16 i = 0; i < 426; i++)
p[i] = f.readByte();
f.read(p, 426);
//putimage(x, y, p, 0);
warning("STUB: Scrolls::geticon()");