Difference between revisions of "Write file"
Jump to navigation
Jump to search
(minor stuff) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
===File_Path=== | ===File_Path=== | ||
The file path is requires the drive to be specified. For Xbox 360 you need to use <code>GAME:/ | The file path is requires the drive to be specified. For Xbox 360 you need to use <code>GAME:/</code> as <code>HDD:</code> isn't accessible, Rock Band 3 Enhanced adds <code>RB3HDD:</code> to bypass this. For PS3 you need to use <code>GD:</code>. | ||
You cannot create folders through <code>write_file</code>, if you try to write to a folder that doesn't exist the file will not be created and it will silently fail. | You cannot create folders through <code>write_file</code>, if you try to write to a folder that doesn't exist the file will not be created and it will silently fail. | ||
Line 19: | Line 19: | ||
PS3 | PS3 | ||
<code>{write_file "GD:/dev_hdd0/game/" $syscfg}</code> | <code>{write_file "GD:/dev_hdd0/game/rootarray.dta" $syscfg}</code> |
Latest revision as of 17:51, 8 April 2024
Creates a file with specified contents.
{write_file File_Path Contents}
File_Path
The file path is requires the drive to be specified. For Xbox 360 you need to use GAME:/
as HDD:
isn't accessible, Rock Band 3 Enhanced adds RB3HDD:
to bypass this. For PS3 you need to use GD:
.
You cannot create folders through write_file
, if you try to write to a folder that doesn't exist the file will not be created and it will silently fail.
Contents
A DataArray to write to the file.
Example
Xbox 360
{write_file "GAME:/rootarray.dta" $syscfg}
PS3
{write_file "GD:/dev_hdd0/game/rootarray.dta" $syscfg}