#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hqrdepack.h"
#include "filereader.h"
Go to the source code of this file.
Functions | |
| void | hqr_decompress_entry (unsigned char *dst, unsigned char *src, int decompsize, int mode) |
| void | hqr_decompress_lz_entry (unsigned char *dst, unsigned char *src, int decompsize, int mode) |
| int | hqr_get_entry (unsigned char *ptr, char *filename, int index) |
| int | hqr_entry_size (char *filename, int index) |
| int | hqr_num_entries (char *filename) |
Variables | |
| filereader | fr |
Prequengine: a Little Big Adventure engine
Copyright (C) 2008 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition in file hqrdepack.c.
| void hqr_decompress_entry | ( | unsigned char * | dst, | |
| unsigned char * | src, | |||
| int | decompsize, | |||
| int | mode | |||
| ) |
Decompress entry based in Yaz0r and Zink decompression code
| dst | destination pointer where will be the decompressed entry | |
| src | compressed data pointer real file size after decompression compression mode used |
Definition at line 39 of file hqrdepack.c.
Referenced by hqr_get_entry().
| void hqr_decompress_lz_entry | ( | unsigned char * | dst, | |
| unsigned char * | src, | |||
| int | decompsize, | |||
| int | mode | |||
| ) |
Decompress entry based in the original expand lzss lba code
| dst | destination pointer where will be the decompressed entry | |
| src | compressed data pointer real file size after decompression compression mode used |
Definition at line 76 of file hqrdepack.c.
| int hqr_entry_size | ( | char * | filename, | |
| int | index | |||
| ) |
Get a HQR entry pointer
| filename | HQR file name | |
| index | entry index to extract |
Definition at line 192 of file hqrdepack.c.
References frclose(), fropen(), frread(), and frseek().
Referenced by init_celling_grid(), init_dialogue_bank(), init_grid(), init_resources(), init_scene(), load_grid_bricks(), play_fla_sample(), play_midi_music(), and preload_sprites().
| int hqr_get_entry | ( | unsigned char * | ptr, | |
| char * | filename, | |||
| int | index | |||
| ) |
Get a HQR entry pointer
| ptr | pointer to save the entry | |
| filename | HQR file name | |
| index | entry index to extract |
Definition at line 127 of file hqrdepack.c.
References frclose(), fropen(), frread(), frseek(), and hqr_decompress_entry().
Referenced by adeline_logo(), init_celling_grid(), init_dialogue_bank(), init_grid(), init_resources(), init_scene(), load_grid_bricks(), load_image(), load_image_delay(), load_menu_image(), main_menu(), play_fla_sample(), play_midi_music(), and preload_sprites().
| int hqr_num_entries | ( | char * | filename | ) |
Get a HQR total number of entries
| filename | HQR file name |
Definition at line 231 of file hqrdepack.c.
References fropen(), and frread().
Referenced by preload_sprites().
Definition at line 32 of file hqrdepack.c.
1.5.5