- added some remarks and removed a couple unneeded lines.

This commit is contained in:
Fledge68 2023-05-19 17:55:44 -05:00
parent cde0c4ab53
commit 07a44551f9
8 changed files with 4 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 4.4 MiB

View File

@ -36,6 +36,7 @@ static inline bool apply_patch(__attribute__((unused)) char *name, const u8 *old
static const u8 isfs_perm_wiivc_old[] = { 0x42, 0x9F, 0xD1, 0x03, 0x20, 0x00, 0xBD, 0xF0, 0x09, 0x8B, 0xE7, 0xF8, 0x20, 0x66 }; static const u8 isfs_perm_wiivc_old[] = { 0x42, 0x9F, 0xD1, 0x03, 0x20, 0x00, 0xBD, 0xF0, 0x09, 0x8B, 0xE7, 0xF8, 0x20, 0x66 };
static const u8 isfs_perm_wiivc_patch[] = { 0x42, 0x9F, 0x46, 0xC0, 0x20, 0x00, 0xBD, 0xF0, 0x09, 0x8B, 0xE7, 0xF8, 0x20, 0x66 }; static const u8 isfs_perm_wiivc_patch[] = { 0x42, 0x9F, 0x46, 0xC0, 0x20, 0x00, 0xBD, 0xF0, 0x09, 0x8B, 0xE7, 0xF8, 0x20, 0x66 };
/* normal wii ios patches */
static const u8 isfs_perm_old[] = { 0x42, 0x8B, 0xD0, 0x01, 0x25, 0x66 }; static const u8 isfs_perm_old[] = { 0x42, 0x8B, 0xD0, 0x01, 0x25, 0x66 };
static const u8 isfs_perm_patch[] = { 0x42, 0x8B, 0xE0, 0x01, 0x25, 0x66 }; static const u8 isfs_perm_patch[] = { 0x42, 0x8B, 0xE0, 0x01, 0x25, 0x66 };
static const u8 setuid_old[] = { 0xD1, 0x2A, 0x1C, 0x39 }; static const u8 setuid_old[] = { 0xD1, 0x2A, 0x1C, 0x39 };

View File

@ -1117,7 +1117,7 @@ void Nand::Init_ISFS()
{ {
if(isfs_inited) if(isfs_inited)
return; return;
PatchIOS(IOS_GetVersion() < 222, isWiiVC); PatchIOS(IOS_GetVersion() < 222, isWiiVC);// if normal IOS we patch isfs_permissions and es_identify, cIOS are already patched.
usleep(1000); usleep(1000);
//gprintf("Init ISFS\n"); //gprintf("Init ISFS\n");
ISFS_Initialize(); ISFS_Initialize();

View File

@ -18,7 +18,6 @@
#include "memory/mem2.hpp" #include "memory/mem2.hpp"
#include "nand_save.hpp" #include "nand_save.hpp"
#include "nand.hpp" #include "nand.hpp"
#include "identify.h"
#include "gecko/gecko.hpp" #include "gecko/gecko.hpp"
#include "loader/fs.h" #include "loader/fs.h"
#include "loader/sys.h" #include "loader/sys.h"

View File

@ -232,7 +232,7 @@ static void Create_Channel_List()
ListElement.index = m_cacheList.size(); ListElement.index = m_cacheList.size();
ListElement.settings[0] = TITLE_UPPER(chan->title); ListElement.settings[0] = TITLE_UPPER(chan->title);
ListElement.settings[1] = TITLE_LOWER(chan->title); ListElement.settings[1] = TITLE_LOWER(chan->title);
if(chan->title == HBC_108) if(chan->title == HBC_108)// HBC_108 ID is odd and does not work for gametdb. JODI, LULZ, and OHBC do work.
memcpy(ListElement.id, "JODI", 4); memcpy(ListElement.id, "JODI", 4);
else else
strncpy(ListElement.id, chan->id, 4); strncpy(ListElement.id, chan->id, 4);

View File

@ -13,6 +13,7 @@ extern "C" {
#define HBC_108 0x00010001af1bf516ULL #define HBC_108 0x00010001af1bf516ULL
#define HBC_JODI 0x000100014a4f4449ULL #define HBC_JODI 0x000100014a4f4449ULL
#define HBC_HAXX 0x0001000148415858ULL #define HBC_HAXX 0x0001000148415858ULL
#define RETURN_CHANNEL 0x0001000857494948ULL #define RETURN_CHANNEL 0x0001000857494948ULL
#define SYSTEM_MENU 0x0000000100000002ULL #define SYSTEM_MENU 0x0000000100000002ULL
#define WIIU_CHANNEL 0x0001000248435641ULL//HCVA #define WIIU_CHANNEL 0x0001000248435641ULL//HCVA

View File

@ -91,7 +91,6 @@ int main(int argc, char **argv)
gprintf("Real Wii\n"); gprintf("Real Wii\n");
gprintf("AHBPROT disabled = %s\n", AHBPROT_Patched() ? "yes" : "no"); gprintf("AHBPROT disabled = %s\n", AHBPROT_Patched() ? "yes" : "no");
IOS_GetCurrentIOSInfo();
/* Init device partition handlers */ /* Init device partition handlers */
DeviceHandle.Init(); DeviceHandle.Init();