mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 01:09:16 +01:00
8bec876889
*Lot's of changes in image processing *Added use of libgd and ImageData class from WiiXplorer. No more crashes with corrupted images and no more restriction to images sizes that are devidable by 4 :). *Added a recource file manager for better access of all files/images for internal files and theme files. Some themes will have to adjust some filenames because we want to use the same filenames for themes and internal source files.
30 lines
664 B
C++
30 lines
664 B
C++
#ifndef RECOURCES_H_
|
|
#define RECOURCES_H_
|
|
|
|
#include "libwiigui/gui_imagedata.h"
|
|
#include "filelist.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 void 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
|