mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-12-26 17:41:48 +01:00
removed all code related to the HBC
This commit is contained in:
parent
955c1a0656
commit
06a8c9c2c4
Binary file not shown.
Before Width: | Height: | Size: 6.3 KiB |
Binary file not shown.
@ -228,8 +228,6 @@ int BootGameCubeHomebrew()
|
||||
|
||||
ES_GetTicketViews(BC, &view, 1);
|
||||
int ret = ES_LaunchTitle(BC, &view);
|
||||
if(ret < 0)
|
||||
LoadHBC();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -32,25 +32,15 @@ AppInfo(const char *title, string dir, u8* icon)
|
||||
|
||||
string line, quelltext = "", version, coder, descriptionTxt;
|
||||
|
||||
if(strcasecmp(title, "the homebrew channel") == 0)
|
||||
{
|
||||
string space = " ";
|
||||
version = tr("Version:") + space + HBC_version;
|
||||
coder = tr("Coder:") + space + "HBC Team";
|
||||
descriptionTxt = "The Homebrew Channel is a channel for launching Wii homebrew applications. It will list homebrew applications stored and organised on an SD card or USB mass storage device in a nice little GUI, which you can very easily customise with descriptions and shiny little icons all by yourself. You can also launch applications via TCP (with a correctly configured PC) or a USBGecko. Both of those built in options make it extremely convenient for testing out new code, as well as a general purpose homebrew launcher.";
|
||||
}
|
||||
else
|
||||
{
|
||||
ifstream in(dir.c_str());
|
||||
while(getline(in, line))
|
||||
quelltext = quelltext + line + "\n";
|
||||
ifstream in(dir.c_str());
|
||||
while(getline(in, line))
|
||||
quelltext = quelltext + line + "\n";
|
||||
|
||||
string space = " ";
|
||||
version = tr("Version:") + space + parser(quelltext, "<version>", "</version>");
|
||||
coder = tr("Coder:") + space + parser(quelltext, "<coder>", "</coder>");
|
||||
descriptionTxt = parser(quelltext, "<long_description>", "</long_description>");
|
||||
|
||||
string space = " ";
|
||||
version = tr("Version:") + space + parser(quelltext, "<version>", "</version>");
|
||||
coder = tr("Coder:") + space + parser(quelltext, "<coder>", "</coder>");
|
||||
descriptionTxt = parser(quelltext, "<long_description>", "</long_description>");
|
||||
}
|
||||
|
||||
GuiWindow promptWindow(520, 360);
|
||||
promptWindow.SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE);
|
||||
promptWindow.SetPosition(0, -10);
|
||||
|
@ -228,8 +228,5 @@ void app_list()
|
||||
// sortieren
|
||||
std::sort(vechomebrew_list_category[0].begin(),vechomebrew_list_category[0].end(), sort_name_a_z);
|
||||
|
||||
// suchen nach hbc
|
||||
//if(DetectHBC() != 0 && Settings.system != 0)
|
||||
// vechomebrew_list_category[0].insert(vechomebrew_list_category[0].begin(), homebrew_list("the homebrew channel", "the homebrew channel", "the homebrew channel", (u8*)hbc_icon_png, "the homebrew channel", ""));
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,6 @@ void copy_app_in_category(int category) //Apps im Kategorie kopieren
|
||||
{
|
||||
copy_app_in_unassigned();
|
||||
vechomebrew_list_category[category].clear();
|
||||
bool hbc = false;
|
||||
|
||||
for(int a = 0; a < (signed)AvailableCategory.apps[category].size(); a++)
|
||||
{
|
||||
@ -131,10 +130,6 @@ void copy_app_in_category(int category) //Apps im Kategorie kopieren
|
||||
strcasecmp(AvailableCategory.apps[category][a].c_str(), "the homebrew channel") == 0
|
||||
)
|
||||
{
|
||||
if(strcasecmp(AvailableCategory.apps[category][a].c_str(), "the homebrew channel") == 0 && !hbc)
|
||||
hbc = true;
|
||||
else if(strcasecmp(AvailableCategory.apps[category][a].c_str(), "the homebrew channel") == 0 && hbc)
|
||||
break;
|
||||
|
||||
vechomebrew_list_category[category].push_back(homebrew_list(
|
||||
vechomebrew_list_category[0][i].name,
|
||||
|
@ -8,8 +8,6 @@
|
||||
#include "filelist.h"
|
||||
using namespace std;
|
||||
|
||||
string HBC_version;
|
||||
|
||||
template <class pointer>
|
||||
s8 free_pointer(pointer*& ptr)
|
||||
{
|
||||
@ -30,108 +28,6 @@ s8 free_pointer(pointer*& ptr)
|
||||
}
|
||||
}
|
||||
|
||||
char * DetectHBC_version(const tmd *t)
|
||||
{
|
||||
static char desc[10];
|
||||
if (t->title_version)
|
||||
snprintf(desc, sizeof(desc), "%d.%d", t->title_version >> 8, t->title_version & 0xFF);
|
||||
/* if (t->sys_version)
|
||||
snprintf(desc, sizeof(desc), "%s FW: IOS%llu ", desc, t->sys_version & 0xff);
|
||||
*/
|
||||
return desc;
|
||||
}
|
||||
|
||||
u64 DetectHBC()
|
||||
{
|
||||
u64 *list;
|
||||
u32 titlecount;
|
||||
s32 ret;
|
||||
|
||||
vector<u64> TitleID;
|
||||
TitleID.push_back(0x0001000148415858LL); //HAXX
|
||||
TitleID.push_back(0x000100014A4F4449LL); //JODI
|
||||
TitleID.push_back(0x00010001AF1BF516LL); //>=0.7
|
||||
|
||||
|
||||
ret = ES_GetNumTitles(&titlecount);
|
||||
if(ret < 0)
|
||||
{
|
||||
printf("DetectHBC: ES_GetNumTitles Fehler\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
list = (u64*)memalign(32, titlecount * sizeof(u64) + 32);
|
||||
|
||||
ret = ES_GetTitles(list, titlecount);
|
||||
if(ret < 0) {
|
||||
printf("DetectHBC: ES_GetTitles Error\n");
|
||||
free_pointer(list);
|
||||
return 0;
|
||||
}
|
||||
ret = 0;
|
||||
|
||||
//lets check for known HBC title id's.
|
||||
for(u32 i=0; i<titlecount; i++)
|
||||
{
|
||||
u32 tmd_size;
|
||||
ES_GetStoredTMDSize(list[i], &tmd_size);
|
||||
static u8 tmd_buf[MAX_SIGNED_TMD_SIZE] ATTRIBUTE_ALIGN(32);
|
||||
signed_blob *s_tmd = (signed_blob *)tmd_buf;
|
||||
ES_GetStoredTMD(list[i], s_tmd, tmd_size);
|
||||
|
||||
if (list[i] == TitleID[0]) //HAXX
|
||||
{
|
||||
if (ret < 1)
|
||||
{
|
||||
ret = 1;
|
||||
HBC_version = "HAXX";
|
||||
}
|
||||
}
|
||||
if (list[i] == TitleID[1]) //JODI
|
||||
{
|
||||
if (ret < 2)
|
||||
{
|
||||
ret = 2;
|
||||
HBC_version = "JODI";
|
||||
}
|
||||
}
|
||||
if (list[i] == TitleID[2]) //>=0.7
|
||||
{
|
||||
if(ret < 3)
|
||||
{
|
||||
ret = 3;
|
||||
HBC_version = DetectHBC_version((tmd *)SIGNATURE_PAYLOAD(s_tmd));
|
||||
}
|
||||
}
|
||||
}
|
||||
free_pointer(list);
|
||||
if(ret != 0)
|
||||
return TitleID[ret -1];
|
||||
else
|
||||
printf("ERROR_FIND_HBC\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void LoadHBC()
|
||||
{
|
||||
u64 TitleID = DetectHBC();
|
||||
if(TitleID != 0)
|
||||
{
|
||||
u32 cnt ATTRIBUTE_ALIGN(32);
|
||||
ES_GetNumTicketViews(TitleID, &cnt);
|
||||
tikview *views = (tikview *)memalign( 32, sizeof(tikview)*cnt );
|
||||
ES_GetTicketViews(TitleID, views, cnt);
|
||||
ES_LaunchTitle(TitleID, &views[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
//well that went wrong
|
||||
printf("ERROR_BOOT_HBC\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
bool CheckAppFound(u64 title)
|
||||
{
|
||||
|
||||
@ -152,20 +48,6 @@ bool CheckAppFound(u64 title)
|
||||
return false;
|
||||
}
|
||||
|
||||
u8 hbcStubAvailable()
|
||||
{
|
||||
char * sig = (char *)0x80001804;
|
||||
return (
|
||||
sig[0] == 'S' &&
|
||||
sig[1] == 'T' &&
|
||||
sig[2] == 'U' &&
|
||||
sig[3] == 'B' &&
|
||||
sig[4] == 'H' &&
|
||||
sig[5] == 'A' &&
|
||||
sig[6] == 'X' &&
|
||||
sig[7] == 'X') ? 1 : 0;
|
||||
}
|
||||
|
||||
int DetectHBF()
|
||||
{
|
||||
u64 *list;
|
||||
@ -214,15 +96,7 @@ int DetectHBF()
|
||||
}
|
||||
*/ }
|
||||
free_pointer(list);
|
||||
if(ret != 0)
|
||||
{
|
||||
memcpy((void*)0x80001800, stub_bin, stub_bin_size);
|
||||
DCFlushRange((void*)0x80001800,stub_bin_size);
|
||||
|
||||
hbcStubAvailable();
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -240,4 +114,4 @@ void LoadHBF()
|
||||
*(vu16*)0x800024D2 = 0x4630;//"F0";
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1 @@
|
||||
|
||||
extern string HBC_version;
|
||||
u64 DetectHBC();
|
||||
void LoadHBC();
|
||||
|
||||
void LoadHBF();
|
||||
|
@ -269,9 +269,6 @@ extern const u32 edit_active_png_size;
|
||||
extern const u8 edit_inactive_png[];
|
||||
extern const u32 edit_inactive_png_size;
|
||||
|
||||
extern const u8 hbc_icon_png[];
|
||||
extern const u32 hbc_icon_png_size;
|
||||
|
||||
extern const u8 recycle_bin_png[];
|
||||
extern const u32 recycle_bin_png_size;
|
||||
|
||||
|
@ -159,6 +159,7 @@ DefaultOptions()
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
SYS_SetResetCallback(WiiResetPressed);
|
||||
SYS_SetPowerCallback(WiiPowerPressed);
|
||||
WPAD_SetPowerButtonCallback(WiimotePowerPressed);
|
||||
@ -229,16 +230,11 @@ main(int argc, char *argv[])
|
||||
if(SelectedIOS() != IOS_GetVersion())
|
||||
IOS_ReloadIOS(SelectedIOS());
|
||||
|
||||
if(Settings.forwarder_path != "the homebrew channel")
|
||||
{
|
||||
if(strstr(Settings.forwarder_path.c_str(), ":/apps/") != 0)
|
||||
BootHomebrew();
|
||||
else if(strstr(Settings.forwarder_path.c_str(), ":/gc_apps/") != 0)
|
||||
BootGameCubeHomebrew();
|
||||
}
|
||||
else
|
||||
LoadHBC();
|
||||
}
|
||||
if(strstr(Settings.forwarder_path.c_str(), ":/apps/") != 0)
|
||||
BootHomebrew();
|
||||
else if(strstr(Settings.forwarder_path.c_str(), ":/gc_apps/") != 0)
|
||||
BootGameCubeHomebrew();
|
||||
}
|
||||
else if(boot_buffer)
|
||||
BootHomebrew();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user