Editing PS3MFW Builder

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 {} {
variable options
    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
}
}


        if {$::patch_epilepsy::options(--patch-epilepsy-cex)} {
    proc patch_self { self } {
            set selfs {vsh.self}
            if { ${::OLDROUTINE} == "1" } {
::modify_devflash_files [file join dev_flash vsh module] $selfs ::patch_epilepsy::patch_epilepsy_cex_self
            } elseif { ${::OLDROUTINE} == "0" } {
::modify_devflash_files2 [file join dev_flash vsh module] $selfs ::patch_epilepsy::patch_epilepsy_cex_self
}
}
        if {$::patch_epilepsy::options(--patch-epilepsy-dex)} {
            set selfs {vsh.self}
             if { ${::OLDROUTINE} == "1" } {
             if { ${::OLDROUTINE} == "1" } {
::modify_devflash_files [file join dev_flash vsh module] $selfs ::patch_epilepsy::patch_epilepsy_dex_self
::modify_self_file $self ::patch_epilepsy::patch_elf
            } elseif { ${::OLDROUTINE} == "0" } {
::modify_devflash_files2 [file join dev_flash vsh module] $selfs ::patch_epilepsy::patch_epilepsy_dex_self
}
}
if {$::patch_epilepsy::options(--patch-epilepsy-rebug)} {
            set selfs1 {vsh.self vsh.self.swp}
            if { ${::OLDROUTINE} == "1" } {
::modify_devflash_files [file join dev_flash vsh module] $selfs1 ::patch_epilepsy::patch1_epilepsy_rebug_self
            } elseif { ${::OLDROUTINE} == "0" } {
::modify_devflash_files2 [file join dev_flash vsh module] $selfs1 ::patch_epilepsy::patch1_epilepsy_rebug_self
}
set selfs2 {vsh.self.cexsp}
            if { ${::OLDROUTINE} == "1" } {
::modify_devflash_files [file join dev_flash vsh module] $selfs2 ::patch_epilepsy::patch2_epilepsy_rebug_self
            } elseif { ${::OLDROUTINE} == "0" } {
::modify_devflash_files2 [file join dev_flash vsh module] $selfs2 ::patch_epilepsy::patch2_epilepsy_rebug_self
}
}
    }
proc patch_epilepsy_cex_self {self} {
if { ${::OLDROUTINE} == "1" } {
::modify_self_file $self ::patch_epilepsy::patch_epilepsy_cex_elf
} elseif { ${::OLDROUTINE} == "0" } {
} elseif { ${::OLDROUTINE} == "0" } {
::modify_self_file2 $self ::patch_epilepsy::patch_epilepsy_cex_elf
::modify_self_file2 $self ::patch_epilepsy::patch_elf
}
}
     }
     }
     proc patch_epilepsy_cex_elf {elf} {
 
         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 {::patch_file_multi $elf $search 0 $replace} \
 
                "Unable to patch self [file tail $elf]"
             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) } {
proc patch_epilepsy_dex_self {self} {
    log "Patching [file tail $elf] to disable epilepsy message on dex cfw"
if { ${::OLDROUTINE} == "1" } {
::modify_self_file $self ::patch_epilepsy::patch_epilepsy_dex_elf
} elseif { ${::OLDROUTINE} == "0" } {
::modify_self_file2 $self ::patch_epilepsy::patch_epilepsy_dex_elf
}
    }
    proc patch_epilepsy_dex_elf {elf} {
        if {$::patch_epilepsy::options(--patch-epilepsy-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 0 $replace} \
                "Unable to patch self [file tail $elf]"
catch_die {::patch_elf $elf $search 2 $replace} \
        }
"Unable to patch self [file tail $elf]"
    }
}
 
proc patch1_epilepsy_rebug_self {self} {
if {$::patch_epilepsy::options(--patch-disable-epilepsy-message-on-rebug) } {
if { ${::OLDROUTINE} == "1" } {
    log "Patching [file tail $elf] to disable epilepsy message on rebug cfw"
::modify_self_file $self ::patch_epilepsy::patch1_epilepsy_rebug_elf
} elseif { ${::OLDROUTINE} == "0" } {
::modify_self_file2 $self ::patch_epilepsy::patch1_epilepsy_rebug_elf
}
    }
    proc patch1_epilepsy_rebug_elf {elf} {
        if {$::patch_epilepsy::options(--patch-epilepsy-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]"
catch_die {::patch_elf $elf $search 0 $replace} \
        }
"Unable to patch self [file tail $elf]"
    }
}
proc patch2_epilepsy_rebug_self {self} {
if { ${::OLDROUTINE} == "1" } {
::modify_self_file $self ::patch_epilepsy::patch2_epilepsy_rebug_elf
} elseif { ${::OLDROUTINE} == "0" } {
::modify_self_file2 $self ::patch_epilepsy::patch2_epilepsy_rebug_elf
}
    }
    proc patch2_epilepsy_rebug_elf {elf} {
        if {$::patch_epilepsy::options(--patch-epilepsy-rebug)} {
            log "Patching [file tail $elf] to disable epilepsy message on rebug cfw"
log "Added by Ezio"
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"
            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
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)