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