homebrewfilter/main/source/main.h
2016-08-14 23:41:56 +02:00

151 lines
2.9 KiB
C++

/****************************************************************************
* libwiigui Template
* Tantric 2009
*
* main.h
***************************************************************************/
#ifndef _MAIN_H_
#define _MAIN_H_
#include <string>
#include <vector>
#include "libwiigui/gui.h"
#include "FreeTypeGX.h"
#include "Tools/category.h"
#include "Tools/theme.h"
#include "Tools/translate.h"
#include "Tools/fileop.h"
#include "../../svnrev/svnrev.h"
#define HW_REG_BASE 0xcd800000
#define HW_ARMIRQMASK (HW_REG_BASE + 0x03c)
#define HW_ARMIRQFLAG (HW_REG_BASE + 0x038)
using namespace std;
class homebrew_list
{
public:
// default constructor
homebrew_list(string name, string info, string foldername, u8 *icon, string pathboot, string arg, string force_reload)
{
this->name = name;
this->info = info;
this->foldername = foldername;
this->icon = icon;
this->pathboot = pathboot;
this->arg = arg;
this->force_reload = force_reload;
}
string name;
string info;
string foldername;
u8 *icon;
string pathboot;
string arg;
string force_reload;
};
extern std::vector<homebrew_list> vechomebrew_list_category[99];
extern std::vector<homebrew_list> vechomebrew_list_unassigned;
extern std::vector<homebrew_list> vechomebrew_list_choice;
class app_ios
{
public:
// default constructor
app_ios(string foldername, int ios) {
this->foldername = foldername;
this->ios = ios;
}
string foldername;
int ios;
};
extern std::vector<app_ios> appios;
void addAppIos(string foldername, int ios);
struct SSettings
{
string device;
int sd_insert;
int usb_insert;
int dvd_insert;
int gca_insert;
int gcb_insert;
string category_name_all;
string category_name;
char new_category_name[256];
int current_category;
int current_page;
int last_app_pos;
int total_page;
int checkrev;
char code[5];
string device_dat;
string dir_dat;
string settings_dat;
string ios_dat;
string forwarder_path;
string startingAppName;
string forwarder_arg;
string force_reload;
int Apps_from;
int Apps_to;
bool grid;
bool unassigned;
int system; // 0 = GC / 1 = Wii / 2 = Wii/GC
int temp_width;
int temp_height;
int temp_horizontal;
int temp_vertical;
int left, right, bottom, top;
};
extern struct SSettings Settings;
struct SOptions
{
int temp_last_setting;
string temp_theme;
string temp_language;
string temp_font;
char temp_code[5];
int temp_network;
int temp_wifigecko;
int temp_newrevtext;
int last_category; // letzte kategorie merken
int slide_effect;
char theme[256];
char language[256];
char font[256];
int apps;
bool quick_start;
bool show_all;
int device_icon;
#ifndef VWII
bool sdgecko;
#endif
bool navigation;
bool network;
bool wifigecko;
bool newrevtext;
#ifndef VWII
bool bootmii_boot2;
#endif
int wiiload_ahb;
int wiiload_ios;
};
extern struct SOptions Options;
void ExitApp();
extern int ExitRequested;
extern s8 PowerOff;
#endif