usbloadergx/source/themes/Resources.h
dimok321 8943592d0e *Fixed several theme images being not loaded. Made all recourses from SVN now themable (sounds/fonts/images). They only have to be in the same folder as the theme images.
*Ignore sector size of wbfs partitions in MBR (some lazy Partition Manager don't change it). Reading it from the partition header now.
*Several small bug fixes and cleanups
*Fixed "Bannersound + BG Music after it" mode
*Updated language files
2011-01-08 12:35:41 +00:00

29 lines
642 B
C++

#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();
static bool LoadFiles(const char * path);
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