AnyRegion Changer AHBPROT Problem November 18, 2010 10:12AM | Admin Registered: 15 years ago Posts: 3,247 |
static bool initialise() { printf("Initialising...\n"); if (!IOSPATCH_Apply()) { printf("Unable to apply patch.\n"); return 1; } else printf("So far so good.\n"); }And it comes out good as long as < no ios reload/> is in the meta.xml.
void miscInit(void) { int ret; // This function initialises the attached controllers WPAD_Init(); PAD_Init(); if (!initialise()) { printf("Unable to patch.\n"); return 1; } Identify_SU(); printf("Initializing Filesystem driver..."); fflush(stdout); ret = ISFS_Initialize(); if (ret < 0) { printf("\nError! ISFS_Initialize (ret = %d)\n", ret); wait_anyKey(); exit(1); } else { printf("OK!\n"); } //IdentSysMenu(); } void IdentSysMenu(void){ int ret; Identify_SysMenu(); ret = ES_SetUID(TITLE_ID(1, 2)); if (ret < 0){ printf("SetUID fail %d", ret); wait_anyKey(); exit(1); } printf("Initializing Filesystem driver..."); fflush(stdout); ISFS_Deinitialize(); ret = ISFS_Initialize(); if (ret < 0) { printf("\nError! ISFS_Initialize (ret = %d)\n", ret); wait_anyKey(); exit(1); } else { printf("OK!\n"); } } void miscDeInit(void) { fflush(stdout); ISFS_Deinitialize(); } u32 getButtons(void) { WPAD_ScanPads(); return WPAD_ButtonsDown(0); } u32 wait_anyKey(void) { u32 pressed; while(!(pressed = getButtons())) { VIDEO_WaitVSync(); } if (pressed & WPAD_BUTTON_HOME) exit(1); return pressed; } u32 wait_key(u32 button) { u32 pressed; do { VIDEO_WaitVSync(); pressed = getButtons(); if (pressed & WPAD_BUTTON_HOME) exit(1); } while(!(pressed & button)); return pressed; }When running it with < no ios reload/> I get "Error! ISFS_Initialize" and if I continue anyways the screen gets all jumbled/wii crashes, which I believe is a bug from the HBC that hasn't been fixed yet. If I don't use < no ios reload/> then I get "Unable to apply patch." but the screen doesn't get jumbled or crash the Wii. I'm really not sure what's going on here.
c:/devkitPro/Projects/bushing-AnyTitle-Deleter-2de3a7b/source/utils.c: In function 'patch_isfs': c:/devkitPro/Projects/bushing-AnyTitle-Deleter-2de3a7b/source/utils.c:55:5: warning: implicit declaration of function 'write16' linking ... bushing-AnyTitle-Deleter-2de3a7b.elf utils.o: In function `patch_isfs': c:/devkitPro/Projects/bushing-AnyTitle-Deleter-2de3a7b/source/utils.c:55: undefined reference to `write16' c:/devkitPro/Projects/bushing-AnyTitle-Deleter-2de3a7b/source/utils.c:64: undefined reference to `write16' collect2: ld returned 1 exit status
u32 patch_isfs(void) { u32 count = 0; if (!HAVE_AHBPROT) { printf("Sorry, AHBPROT not enabled!\n"); return 0; } write16(MEM_PROT, 0); u16 *ptr; for (ptr= (u16 *)0x93400000; ptr < (u16 *)0x94000000; ptr ++) if (ptr[0] == isfs_old[0] && ptr[1] == isfs_old[1] && ptr[2] == isfs_old[2]) { ptr[1] = 0xE001; DCFlushRange(ptr, 64); count++; break; } write16(MEM_PROT, 1); return count; }Any ideas?
Re: AnyRegion Changer AHBPROT Problem November 23, 2010 04:07PM | Registered: 14 years ago Posts: 686 |
Re: AnyRegion Changer AHBPROT Problem November 23, 2010 07:19PM | Admin Registered: 15 years ago Posts: 3,247 |
Re: AnyRegion Changer AHBPROT Problem November 24, 2010 04:00AM | Admin Registered: 15 years ago Posts: 5,132 |
Re: AnyRegion Changer AHBPROT Problem November 24, 2010 04:43AM | Admin Registered: 15 years ago Posts: 3,247 |
Re: AnyRegion Changer AHBPROT Problem November 28, 2010 10:50PM | Admin Registered: 15 years ago Posts: 3,247 |
Identifying as SU...Error! ES_Identify (ret = -1017) Initializing Filesystem driver...OK! Error! ES_OpenTitleContent (ret = 1026)[1]
Re: AnyRegion Changer AHBPROT Problem November 29, 2010 08:17AM | Registered: 14 years ago Posts: 686 |
Re: AnyRegion Changer AHBPROT Problem November 29, 2010 08:53AM | Admin Registered: 15 years ago Posts: 3,247 |
Re: AnyRegion Changer AHBPROT Problem November 29, 2010 09:18AM | Registered: 15 years ago Posts: 68 |
Re: AnyRegion Changer AHBPROT Problem November 29, 2010 09:37AM | Admin Registered: 15 years ago Posts: 3,247 |