Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int install_sysmenu(u32 version){
- int ret = 0, use_ios_patch = 0;
- u16 ver;
- if (get_installed_title_version(TITLE_ID(1,2)) >= version ||
- get_installed_title_version(TITLE_ID(1,30)) > 1040)
- use_ios_patch = 1;
- printf("\x1b[2J\n\n");
- patchmii_network_init();
- if (use_ios_patch && !using_temp_ios){
- printf("Installing temporary IOS35 for IOS/SysMenu downgrade...\n");
- ret = install_temporary_ios(51, 4633);
- if (ret) goto cleanup;
- printf("Loading temporary IOS...\n");
- WPAD_Shutdown();
- load_temporary_ios();
- printf("\nLoaded IOS %d\n", IOS_GetVersion());
- using_temp_ios = 1;
- printf("Reinitializing...");
- miscInit();
- patchmii_network_init();
- }
- ver = get_installed_title_version(TITLE_ID(1,30));
- if(ver >= 1040)
- {
- // printf("\n\nDo you want to support Korean Discs in System Menu?\n");
- // printf(WARNING_SIGN "\tIf you are not sure, select 'NO'.\n");
- // printf(WARNING_SIGN "\t'YES' then install patched IOS37 to IOS30 for Korean Discs.\n");
- // printf(WARNING_SIGN "\tYou may need to install patched IOS40, 41, 43 and 45 additionally\n");
- // printf(WARNING_SIGN "\t\tfor playing Korean Discs directly from the System Menu\n");
- // if (yes_or_no())
- // {
- // ret = patchmii_install(1, 37, 2070, 1, 30, 1040, patch_generic_es);
- //
- // // if failed, it will install original IOS30 .
- // if (ret)
- // {
- // printf ("Error!: failed to install fake IOS30. Installing original IOS30 v1040...\n");
- // ret = patchmii_install(1, 30, 1040, 1, 30, 1040, 0);
- // }
- // }
- // else // if (ver != 1040)
- // {
- ret = patchmii_install(1, 30, 1040, 1, 30, 1040, 0);
- // }
- }
- // if (ret) goto cleanup;
- //
- //
- // printf ("\n\nDo you want to add hacks for the SystemMenu?\n");
- // printf(WARNING_SIGN "\tIf you are not sure, select 'NO'.\n");
- // printf(WARNING_SIGN "\t\tbecause these may cause your Wii brick.\n");
- // printf(WARNING_SIGN "\t'YES' then patching SystemMenu with following features.\n");
- // printf(WARNING_SIGN "\t1. Full & Enhanced Disc Region Free (Wii/NGC).\n");
- // printf(WARNING_SIGN "\t2. Full Channel Region Free.\n");
- // printf(WARNING_SIGN "\t3. Always autoboot in Recovery Mode.\n");
- // printf(WARNING_SIGN "\t4. Starfall Recovery Mode\n");
- // printf(WARNING_SIGN "\t\t Holding NGC Pad 'Y' button while Wii starting,\n");
- // printf(WARNING_SIGN "\t\t then get in recovery mode\n");
- //
- // if (yes_or_no())
- // {
- // ret = patchmii_install(1, 2, version, 1, 2, version, patch_systemmenu);
- // // if failed, it will install original IOS30 .
- // if (ret)
- // {
- // printf ("Error!: failed to install patched SystemMenu. Installing original...\n");
- // ret = patchmii_install(1, 2, version, 1, 2, version, 0);
- // }
- // }
- // else
- // {
- // ret = patchmii_install(1, 2, version, 1, 2, version, 0);
- // }
- //
- // if (ret)
- // {
- // goto cleanup;
- // }
- // else if ((lang == 9) || (area == 7) || (game == 3))
- // {
- // switch (version - 288)
- // {
- // case 1:
- // lang = 1;
- // area = 1;
- // game = 1;
- // break;
- // case 2:
- // lang = 1;
- // area = 2;
- // game = 2;
- // break;
- // case 0:
- // default:
- // lang = 0;
- // area = 0;
- // game = 0;
- // break;
- // }
- //
- // saveSettings ();
- // }
- //
- cleanup:
- if(use_ios_patch) cleanup_temporary_ios();
- printf("Press any key to continue");
- wait_anyKey();
- return ret;
- }
Add Comment
Please, Sign In to add comment