* Libraries are now being compiled only as static or as shared, not both, quickening the compile process.

* Implemented the rewrite of the iff library, submitted by Propeng. The linked list has been completely replaced with vectors or normal arrays.
* Started work on the cur and tga parsers
This commit is contained in:
Fatbag 2012-04-29 00:44:41 -05:00
parent 5c7a36592e
commit 55659f43b5
25 changed files with 685 additions and 525 deletions

View file

@ -21,10 +21,14 @@
#include <stdint.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <memory.h>
#ifndef NOWINDOWS
#include <windows.h>
#endif
#define fhexport __declspec(dllexport)
struct Asset_t {
uint32_t Group;
uint32_t File;
@ -62,12 +66,12 @@ struct Sound_t {
namespace File {
extern int Error;
extern size_t FileSize;
fhexport extern int Error;
fhexport extern size_t FileSize;
uint8_t * ReadFile(const char * Filename);
Image_t * ReadImageFile(const char * Filename);
Sound_t * ReadSoundFile(const char * Filename);
fhexport uint8_t * ReadFile(const char * Filename);
fhexport Image_t * ReadImageFile(const char * Filename);
fhexport Sound_t * ReadSoundFile(const char * Filename);
}