mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 09:19:17 +01:00
973d8b2005
*Converted every 4 spaces to a tab to make the source consistent on those
29 lines
561 B
C++
29 lines
561 B
C++
#ifndef RECOURCES_H_
|
|
#define RECOURCES_H_
|
|
|
|
#include "GUI/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 u32 GetFileSize(const char * filename);
|
|
static GuiImageData * GetImageData(const char * filename);
|
|
|
|
private:
|
|
static RecourceFile RecourceFiles[];
|
|
};
|
|
|
|
#endif
|