Editing PS3MFW Builder
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 769: | Line 769: | ||
# Description: [4.xx] Patch to disable epilepsy message | # Description: [4.xx] Patch to disable epilepsy message | ||
# Option --patch-epilepsy-cex: [4.xx] Patch to disable the epilepsy message on cex cfw! | # Option --patch-disable-epilepsy-message-on-cex: [4.xx] Patch to disable the epilepsy message on cex cfw! | ||
# Option --patch-epilepsy-dex: [4.xx] Patch to disable the epilepsy message on dex cfw! | # Option --patch-disable-epilepsy-message-on-dex: [4.xx] Patch to disable the epilepsy message on dex cfw! | ||
# Option --patch-epilepsy-rebug: [4.xx] Patch to disable the epilepsy message on rebug cfw! | # Option --patch-disable-epilepsy-message-on-rebug: [4.xx] Patch to disable the epilepsy message on rebug cfw! | ||
# Type --patch-epilepsy-cex: boolean | # Type --patch-disable-epilepsy-message-on-cex: boolean | ||
# Type --patch-epilepsy-dex: boolean | # Type --patch-disable-epilepsy-message-on-dex: boolean | ||
# Type --patch-epilepsy-rebug: boolean | # Type --patch-disable-epilepsy-message-on-rebug: boolean | ||
namespace eval ::patch_epilepsy { | namespace eval ::patch_epilepsy { | ||
array set ::patch_epilepsy::options { | array set ::patch_epilepsy::options { | ||
--patch-epilepsy-cex true | --patch-disable-epilepsy-message-on-cex true | ||
--patch-epilepsy-dex false | --patch-disable-epilepsy-message-on-dex false | ||
--patch-epilepsy-rebug false | --patch-disable-epilepsy-message-on-rebug false | ||
} | } | ||
proc main { } { | proc main {} { | ||
set self [file join dev_flash vsh module vsh.self] | |||
set ::SELF "vsh.self" | |||
if { ${::OLDROUTINE} == "1" } { | |||
::modify_devflash_file $self ::patch_epilepsy::patch_self | |||
} elseif { ${::OLDROUTINE} == "0" } { | |||
::modify_devflash_file2 $self ::patch_epilepsy::patch_self | |||
} | |||
} | |||
proc patch_self { self } { | |||
if { ${::OLDROUTINE} == "1" } { | if { ${::OLDROUTINE} == "1" } { | ||
::modify_self_file $self ::patch_epilepsy::patch_elf | |||
::modify_self_file $self ::patch_epilepsy:: | |||
} elseif { ${::OLDROUTINE} == "0" } { | } elseif { ${::OLDROUTINE} == "0" } { | ||
::modify_self_file2 $self ::patch_epilepsy:: | ::modify_self_file2 $self ::patch_epilepsy::patch_elf | ||
} | } | ||
} | } | ||
proc | |||
if {$::patch_epilepsy::options(--patch-epilepsy-cex)} { | proc patch_elf { elf } { | ||
if {$::patch_epilepsy::options(--patch-disable-epilepsy-message-on-cex) } { | |||
log "Patching [file tail $elf] to disable epilepsy message on cex cfw" | log "Patching [file tail $elf] to disable epilepsy message on cex cfw" | ||
log "Added by Ezio" | log "Added by Ezio" | ||
set search "\x00\x00\x00\x02\x00\x00\x00\x01\x02\x01\x01\x01\xff\xff\xff\xff" | set search "\x00\x00\x00\x02\x00\x00\x00\x01\x02\x01\x01\x01\xff\xff\xff\xff" | ||
set replace "\x00\x00\x00\x02\x00\x00\x00\x01\x02\x00\x01\x01\xff\xff\xff\xff" | set replace "\x00\x00\x00\x02\x00\x00\x00\x01\x02\x00\x01\x01\xff\xff\xff\xff" | ||
catch_die {:: | |||
catch_die {::patch_elf $elf $search 0 $replace} \ | |||
"Unable to patch self [file tail $elf]" | |||
} | } | ||
if {$::patch_epilepsy::options(--patch-disable-epilepsy-message-on-dex) } { | |||
log "Patching [file tail $elf] to disable epilepsy message on dex cfw" | |||
log "Added by Ezio" | log "Added by Ezio" | ||
set search "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x01\x00\xff\xff\xff\xff" | set search "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x01\x00\xff\xff\xff\xff" | ||
set replace "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x00\xff\xff\xff\xff" | set replace "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x00\xff\xff\xff\xff" | ||
catch_die {::patch_elf $elf $search 2 $replace} \ | |||
"Unable to patch self [file tail $elf]" | |||
} | |||
if {$::patch_epilepsy::options(--patch-disable-epilepsy-message-on-rebug) } { | |||
log "Patching [file tail $elf] to disable epilepsy message on rebug cfw" | |||
log "Added by Ezio" | log "Added by Ezio" | ||
set search "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x01\x00\xff\xff\xff\xff" | |||
set search "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x01\x00\xff\xff\xff\xff" | |||
set replace "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x00\xff\xff\xff\xff" | set replace "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01\x00\xff\xff\xff\xff" | ||
catch_die {::patch_elf $elf $search 0 $replace} \ | |||
"Unable to patch self [file tail $elf]" | |||
} | |||
} | } | ||
} | } | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
http://www.psdevwiki.com/ps3/Patches#disable_epilepsy_message | http://www.psdevwiki.com/ps3/Patches#disable_epilepsy_message |