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 353: Line 353:
# Description: Patch emergency init application
# Description: Patch emergency init application
   
   
# Option --patch-pup-search-in-game-disc: Disable searching for update packages in GAME disc
# Option --patch-pup-search-in-game-disc: Enable searching for update packages in GAME disc
# Option --patch-gameos-hdd-region-size: Create GameOS HDD region smaller than default
# Option --patch-gameos-hdd-region-size: Create GameOS HDD region smaller than default
   
   
Line 1,521: Line 1,521:
===Example of PS3MFW Builder 0.2 tasks===
===Example of PS3MFW Builder 0.2 tasks===
{{Keyboard|content=<syntaxhighlight lang="bash">
{{Keyboard|content=<syntaxhighlight lang="bash">
ps3mfw.exe %1 "Y:\PS3-Firmwares" "Z:/PS3MFW-out/test.pup" --change_version --add_license_msg --patch_lv1 --patch_lv2 --patch_nas_plugin --patch_privacy --patch_vsh --patch_category_game --spoof_version --debug true
ps3mfw.exe %1 "Y:\PS3-Firmwares" "x:/PS3MFW-out/test.pup" --change_version --add_license_msg --patch_lv1 --patch_lv2 --patch_nas_plugin --patch_privacy --patch_vsh --patch_category_game --spoof_version --debug true
</syntaxhighlight>}}
</syntaxhighlight>}}


Line 1,537: Line 1,537:
ps3mfw.exe %1 "Y:\PS3-Firmwares\OFW430.PUP" ""Z:/MFWOtherOS-out/MFW430.PUP" --gui false --debug true --patch_pup --pup-build "" --version-string "" --version-suffix "PSDEVWIKI" --patch_lv1 --patch-lv1-peek-poke true --patch-lv1-remove-lv2-protection true --patch-lv1-sysmgr-disable-integrity-check-4x true --patch-lv1-coreos-hash-check true --patch_cos --patch-lv0-coreos-ecdsa-check true --patch-spkg-ecdsa-check true --patch-pup-search-in-game-disc true --patch-lv2-peek-poke-4x true --patch-lv2-lv1-peek-poke-4x true --patch-lv2-npdrm-ecdsa-check true --patch-lv2-payload-hermes-4x true --patch-lv2-SC36-4x true --patch_xmb --add-install-pkg true --patch-act-pkg true --add-hb-seg true --patch-app-home true --patch-ren-apphome true --patch-alpha-sort true --patch-rape-sfo true --patch_vsh --allow-pseudoretail-pkg true --allow-debug-pkg true --patch-vsh-react-psn-v2-4x true
ps3mfw.exe %1 "Y:\PS3-Firmwares\OFW430.PUP" ""Z:/MFWOtherOS-out/MFW430.PUP" --gui false --debug true --patch_pup --pup-build "" --version-string "" --version-suffix "PSDEVWIKI" --patch_lv1 --patch-lv1-peek-poke true --patch-lv1-remove-lv2-protection true --patch-lv1-sysmgr-disable-integrity-check-4x true --patch-lv1-coreos-hash-check true --patch_cos --patch-lv0-coreos-ecdsa-check true --patch-spkg-ecdsa-check true --patch-pup-search-in-game-disc true --patch-lv2-peek-poke-4x true --patch-lv2-lv1-peek-poke-4x true --patch-lv2-npdrm-ecdsa-check true --patch-lv2-payload-hermes-4x true --patch-lv2-SC36-4x true --patch_xmb --add-install-pkg true --patch-act-pkg true --add-hb-seg true --patch-app-home true --patch-ren-apphome true --patch-alpha-sort true --patch-rape-sfo true --patch_vsh --allow-pseudoretail-pkg true --allow-debug-pkg true --patch-vsh-react-psn-v2-4x true
</syntaxhighlight>}}
</syntaxhighlight>}}
Why GitHub?
Team
Enterprise
Explore
Marketplace
Pricing
Sign in Sign up
Code  Issues 0  Pull requests 1  Actions  Projects 0  Security  Insights
Branch: master
mfw/xml.tcl
Find file Copy path
Fetching contributors…
360 lines (332 sloc)  9.78 KB
RawBlameHistory
   
#!/usr/bin/tclsh
#
# ps3mfw -- PS3 MFW creator
#
# Copyright (C) Anonymous Developers (Code Monkeys)
#
# This software is distributed under the terms of the GNU General Public
# License ("GPL") version 3, as published by the Free Software Foundation.
#
namespace eval ::xml {
    proc LoadFile {filename} {
set fd [open $filename r]
set data [read $fd]
close $fd
return [Load $data]
    }
    proc Load {xml} {
# Remove any unwanted characters that could appear before/after the xml
regsub {^.*?<} $xml {<} xml
regsub {>[^>]*?$} $xml {>} xml
if { $xml == "" } { return "" }
# Remove xml file header and comments
# Here the ".*?" in the regexp means a non greedy matching,
# which means match as little characters as possible.. the reason, here's an example :
# <!-- comment --> <tag/> <!-- comment2 --> <tag2/>
# the regsub {<!--.*-->} would remove from the first <!-- to the last -->
# which means we end up with <tag2/> and we loose <tag/>..
# if it's greedy, it will match all possible chars, with non-greedy,
# it will match only the smallest number: only the comment...
regsub -all {<\?xml.*?\?>} $xml "" xml
regsub -all {<!--.*?-->} $xml "" xml
# Avoid unmatched braces in list, in case we have a left or right accolade in the xml data
set xml [string map {"\{" "&right_accolade;" "\}" "&left_accolade;" "\\" "&escape_char;"}  $xml]
regsub -all {>\s*<} [string trim $xml " \r\n\t<>"] "\} \{" xml
set xml [string map {> "\} \{#text \{" < "\}\} \{" }  $xml]
set res ""  ;# string to collect the result
set stack {} ;# track open tags
set rest {}
foreach item "{$xml}" {
    switch -regexp -- $item {
^# {
    append res "{[lrange $item 0 end]} " ; #text item
}
^/ {
    regexp {/(.+)} $item -> tagname ;# end tag


== FAQ ==
== FAQ ==
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)