diff --git a/libruntimeiospatch/API b/libruntimeiospatch/API index e60d0d7..7a726cc 100644 --- a/libruntimeiospatch/API +++ b/libruntimeiospatch/API @@ -12,7 +12,7 @@ This function returns true, then there is HW_AHBPROT access available. >> Flags: none ****** -if (have_ahbprot()) { +if (have_ahbprot()) do_something else do_something_else @@ -29,6 +29,7 @@ This function can be used to keep HW_AHBPROT access when going to reload IOS >> Return: -5: no HW_AHBPROT access +-7: patching HW_AHBPROT access failed >0: success ****** @@ -72,7 +73,7 @@ Sciifii: * ES OpenTitleContent 1 & 2 * ES ReadContent Prot * ES CloseContent - * Es TitleVersionCheck + * ES TitleVersionCheck * ES TitleDeleteCheck vWii: diff --git a/libruntimeiospatch/source/runtimeiospatch.c b/libruntimeiospatch/source/runtimeiospatch.c index 1589825..5d920e3 100644 --- a/libruntimeiospatch/source/runtimeiospatch.c +++ b/libruntimeiospatch/source/runtimeiospatch.c @@ -122,7 +122,10 @@ u32 IosPatch_AHBPROT(bool verbose) { disable_memory_protection(); //return apply_patch("set_ahbprot", check_tmd_old, sizeof(check_tmd_old), check_tmd_patch, sizeof(check_tmd_patch), 6, verbose); ret = apply_patch("es_set_ahbprot", es_set_ahbprot_old, sizeof(es_set_ahbprot_old), es_set_ahbprot_patch, sizeof(es_set_ahbprot_patch), 25, verbose); - xret = ret; + if (ret) + xret = ret; + else + xret = -7; } else { xret = -5; }