src/spriteloader/grf.cpp
branchNewGRF_ports
changeset 6872 1c4a4a609f85
parent 6870 ca3fd1fbe311
child 10724 68a692eacf22
equal deleted inserted replaced
6871:5a9dc001e1ad 6872:1c4a4a609f85
     1 /* $Id$ */
     1 /* $Id$ */
     2 
     2 
     3 /** @file grf.cpp */
     3 /** @file grf.cpp */
     4 
     4 
     5 #include "../stdafx.h"
     5 #include "../stdafx.h"
     6 #include "../gfx.h"
     6 #include "../gfx_func.h"
     7 #include "../fileio.h"
     7 #include "../fileio.h"
     8 #include "../debug.h"
     8 #include "../debug.h"
       
     9 #include "../core/alloc_func.hpp"
     9 #include "grf.hpp"
    10 #include "grf.hpp"
    10 
    11 
    11 bool SpriteLoaderGrf::LoadSprite(SpriteLoader::Sprite *sprite, const char *filename, uint8 file_slot, uint32 file_pos)
    12 bool SpriteLoaderGrf::LoadSprite(SpriteLoader::Sprite *sprite, uint8 file_slot, uint32 file_pos)
    12 {
    13 {
    13 	/* Open the right file and go to the correct position */
    14 	/* Open the right file and go to the correct position */
    14 	FioSeekToFile(file_slot, file_pos);
    15 	FioSeekToFile(file_slot, file_pos);
    15 
    16 
    16 	/* Read the size and type */
    17 	/* Read the size and type */