mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 01:09:16 +01:00
f1febd91be
*Fixed Font loading. The font.ttf is loaded from the path with .thems if it exists there. When a Theme is loaded and a font.ttf file exists in the defined "Image-Folder:" than this font.ttf will override all others. This ensures support for themes with special fonts. *Fixed double count on playcount bug *Updated libext2fs to git snapshot 2010-12-24 *Added proper close of all file systems where the games are loaded from (FAT32/NTFS/EXT) *Fixed hang bug when reloading into the IOS set in the individual game settings with that (reload to 223, 224, 245, ...)
30 lines
682 B
C++
30 lines
682 B
C++
#ifndef _THEME_H_
|
|
#define _THEME_H_
|
|
|
|
#include <string>
|
|
#include <stdio.h>
|
|
#include <gctypes.h>
|
|
#include "Resources.h"
|
|
#include "gettheme.h"
|
|
|
|
class Theme
|
|
{
|
|
public:
|
|
//!Set Default
|
|
static void SetDefault();
|
|
//!Load
|
|
static bool Load(const char * path);
|
|
//!Load font data
|
|
static bool LoadFont(const char *path);
|
|
//!Clear all image/font/theme data and free the memory
|
|
static void CleanUp();
|
|
|
|
//!Enable tooltips: special case treaded because it is called every frame
|
|
static bool ShowTooltips;
|
|
private:
|
|
//!Clear the font data and free the memory
|
|
static void ClearFontData();
|
|
};
|
|
|
|
#endif
|