From 3d1a6a130e5ff78101b03ea3062583cd883ed179 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Fri, 4 Jan 2013 19:32:09 +0100 Subject: [PATCH] return to HBF0 works again --- main/source/Prompts/prompt_info.cpp | 2 +- main/source/Tools/load_channel.cpp | 37 ++++++++++++++++------------- web/updates | 1 + 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/main/source/Prompts/prompt_info.cpp b/main/source/Prompts/prompt_info.cpp index ba0da53..c8aea5c 100644 --- a/main/source/Prompts/prompt_info.cpp +++ b/main/source/Prompts/prompt_info.cpp @@ -98,7 +98,7 @@ infoPrompt() char Rev[50]; #ifdef STBOOTVWII sprintf(Rev, "Rev. %i (vWii ST)", SvnRev()); -#elif +#elif VWII sprintf(Rev, "Rev. %i (vWii Full)", SvnRev()); #elif STBOOT sprintf(Rev, "Rev. %i (Wii ST)", SvnRev()); diff --git a/main/source/Tools/load_channel.cpp b/main/source/Tools/load_channel.cpp index d344fc8..715dd97 100644 --- a/main/source/Tools/load_channel.cpp +++ b/main/source/Tools/load_channel.cpp @@ -73,12 +73,15 @@ u8 hbcStubAvailable() int DetectHBF() { u64 *list; - u32 titlecount; - int ret; + u32 titlecount; + int ret; vector TitleID; - TitleID.push_back(0x0001000154484246LL); //THBF -// TitleID.push_back(0x0001000148424630LL); //HBF0 +#if defined(STBOOT) || defined(STBOOTVWII) + TitleID.push_back(0x0001000148424630LL); //HBF0 +#else + TitleID.push_back(0x0001000154484246LL); //THBF +#endif ret = ES_GetNumTitles(&titlecount); if(ret < 0) @@ -87,36 +90,38 @@ int DetectHBF() return 0; } - list = (u64*)memalign(32, titlecount * sizeof(u64) + 32); + list = (u64*)memalign(32, titlecount * sizeof(u64) + 32); ret = ES_GetTitles(list, titlecount); if(ret < 0) { printf("DetectHBF: ES_GetTitles Error\n"); free_pointer(list); return 0; - } + } ret = 0; //lets check for known HBF title id's. - for(u32 i=0; i