src/spriteloader/grf.cpp
branchNewGRF_ports
changeset 6870 ca3fd1fbe311
parent 6720 35756db7e577
child 6872 1c4a4a609f85
equal deleted inserted replaced
6869:76282d3b748d 6870:ca3fd1fbe311
     6 #include "../gfx.h"
     6 #include "../gfx.h"
     7 #include "../fileio.h"
     7 #include "../fileio.h"
     8 #include "../debug.h"
     8 #include "../debug.h"
     9 #include "grf.hpp"
     9 #include "grf.hpp"
    10 
    10 
    11 bool SpriteLoaderGrf::LoadSprite(SpriteLoader::Sprite *sprite, const char *filename, uint32 file_pos)
    11 bool SpriteLoaderGrf::LoadSprite(SpriteLoader::Sprite *sprite, const char *filename, uint8 file_slot, uint32 file_pos)
    12 {
    12 {
    13 	/* Open the right file and go to the correct position */
    13 	/* Open the right file and go to the correct position */
    14 	FioSeekToFile(file_pos);
    14 	FioSeekToFile(file_slot, file_pos);
    15 
    15 
    16 	/* Read the size and type */
    16 	/* Read the size and type */
    17 	int num = FioReadWord();
    17 	int num = FioReadWord();
    18 	byte type = FioReadByte();
    18 	byte type = FioReadByte();
    19 
    19