homebrewfilter/main/source/main.h

150 lines
3.0 KiB
C
Raw Normal View History

2011-09-25 19:47:02 +02:00
/****************************************************************************
* 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"
2011-09-25 19:47:02 +02:00
#define HW_REG_BASE 0xcd800000
#define HW_ARMIRQMASK (HW_REG_BASE + 0x03c)
#define HW_ARMIRQFLAG (HW_REG_BASE + 0x038)
#define IsWiiU ( (*(u32*)0x0d8005A0 >> 16 ) == 0xCAFE )
2011-09-25 19:47:02 +02:00
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)
2011-09-25 19:47:02 +02:00
{
this->name = name;
this->info = info;
this->foldername = foldername;
this->icon = icon;
this->pathboot = pathboot;
this->arg = arg;
this->force_reload = force_reload;
2011-09-25 19:47:02 +02:00
}
string name;
string info;
string foldername;
u8 *icon;
string pathboot;
string arg;
string force_reload;
2011-09-25 19:47:02 +02:00
};
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;
2012-03-14 14:11:06 +01:00
int dvd_insert;
int gca_insert;
int gcb_insert;
2011-09-25 19:47:02 +02:00
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];
2012-05-03 21:31:15 +02:00
2011-09-25 19:47:02 +02:00
string device_dat;
string dir_dat;
string settings_dat;
string ios_dat;
string forwarder_path;
string startingAppName;
string forwarder_arg;
string force_reload;
2012-05-03 21:31:15 +02:00
2011-09-25 19:47:02 +02:00
int Apps_from;
int Apps_to;
2012-05-03 21:31:15 +02:00
2011-09-25 19:47:02 +02:00
bool grid;
bool unassigned;
int system; // 0 = GC / 1 = Wii / 2 = Wii/GC
2012-05-03 21:31:15 +02:00
2011-09-25 19:47:02 +02:00
int temp_width;
int temp_height;
int temp_horizontal;
int temp_vertical;
int left, right, bottom, top;
};
extern struct SSettings Settings;
struct SOptions
{
2012-08-29 23:18:45 +02:00
int temp_last_setting;
2011-09-25 19:47:02 +02:00
string temp_theme;
string temp_language;
string temp_font;
char temp_code[5];
2012-08-29 23:18:45 +02:00
int temp_network;
int temp_wifigecko;
int temp_newrevtext;
int last_category; // letzte kategorie merken
int slide_effect;
2011-09-25 19:47:02 +02:00
char theme[256];
char language[256];
char font[256];
int apps;
2011-09-25 19:47:02 +02:00
bool quick_start;
bool show_all;
int device_icon;
bool sdgecko;
2011-09-25 19:47:02 +02:00
bool navigation;
bool network;
2012-08-29 23:18:45 +02:00
bool wifigecko;
2011-09-25 19:47:02 +02:00
bool newrevtext;
#ifndef VWII
bool bootmii_boot2;
#endif
int wiiload_ahb;
2012-05-12 17:02:05 +02:00
int wiiload_ios;
2011-09-25 19:47:02 +02:00
};
extern struct SOptions Options;
void ExitApp();
extern int ExitRequested;
extern s8 PowerOff;
#endif