small changes

This commit is contained in:
Christopher Roy Bratusek 2012-12-28 21:21:34 +01:00
parent ed955234b9
commit 1ce7782264
2 changed files with 7 additions and 3 deletions

View File

@ -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:

View File

@ -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;
}