[Build] updated build tools

This commit is contained in:
Antz 2015-01-21 15:37:17 +00:00 committed by Antz
parent 28863fe68e
commit deb9a167ea
91 changed files with 8453 additions and 21693 deletions

View file

@ -49,13 +49,46 @@ typedef unsigned __int8 uint8;
#include <linux/types.h>
#endif
#endif
/**
* @brief
*
*/
typedef int64_t int64;
/**
* @brief
*
*/
typedef int32_t int32;
/**
* @brief
*
*/
typedef int16_t int16;
/**
* @brief
*
*/
typedef int8_t int8;
/**
* @brief
*
*/
typedef uint64_t uint64;
/**
* @brief
*
*/
typedef uint32_t uint32;
/**
* @brief
*
*/
typedef uint16_t uint16;
/**
* @brief
*
*/
typedef uint8_t uint8;
#endif
@ -70,33 +103,76 @@ void CloseArchives();
#define FILE_FORMAT_VERSION 18
//
// File version chunk
//
/**
* @brief File version chunk
*
*/
struct file_MVER
{
/**
* @brief
*
*/
union
{
uint32 fcc;
char fcc_txt[4];
uint32 fcc; /**< TODO */
char fcc_txt[4]; /**< TODO */
};
uint32 size;
uint32 ver;
uint32 size; /**< TODO */
uint32 ver; /**< TODO */
};
/**
* @brief
*
*/
class FileLoader
{
uint8* data;
uint32 data_size;
uint8* data; /**< TODO */
uint32 data_size; /**< TODO */
public:
/**
* @brief
*
* @return bool
*/
virtual bool prepareLoadedData();
/**
* @brief
*
* @return uint8
*/
uint8* GetData() {return data;}
/**
* @brief
*
* @return uint32
*/
uint32 GetDataSize() {return data_size;}
file_MVER* version;
file_MVER* version; /**< TODO */
/**
* @brief
*
*/
FileLoader();
/**
* @brief
*
*/
~FileLoader();
/**
* @brief
*
* @param filename
* @param log
* @return bool
*/
bool loadFile(char* filename, bool log = true);
/**
* @brief
*
*/
virtual void free();
};
#endif