2010-09-26 10:33:43 +02:00
|
|
|
#ifndef RECOURCES_H_
|
|
|
|
#define RECOURCES_H_
|
|
|
|
|
2011-06-14 19:53:19 +02:00
|
|
|
#include "GUI/gui_imagedata.h"
|
2010-09-26 10:33:43 +02:00
|
|
|
|
|
|
|
typedef struct _RecourceFile
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
const char *filename;
|
|
|
|
const u8 *DefaultFile;
|
|
|
|
const u32 DefaultFileSize;
|
|
|
|
u8 *CustomFile;
|
|
|
|
u32 CustomFileSize;
|
2010-09-26 10:33:43 +02:00
|
|
|
} RecourceFile;
|
|
|
|
|
|
|
|
class Resources
|
|
|
|
{
|
2011-07-26 00:28:22 +02:00
|
|
|
public:
|
|
|
|
static void Clear();
|
|
|
|
static bool LoadFiles(const char * path);
|
|
|
|
static const u8 * GetFile(const char * filename);
|
|
|
|
static u32 GetFileSize(const char * filename);
|
|
|
|
static GuiImageData * GetImageData(const char * filename);
|
2010-09-26 10:33:43 +02:00
|
|
|
|
2011-07-26 00:28:22 +02:00
|
|
|
private:
|
|
|
|
static RecourceFile RecourceFiles[];
|
2010-09-26 10:33:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|