User Tools

Site Tools


template:iso-mod-script-functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
template:iso-mod-script-functions [2023/06/07 21:59]
52.74.241.251 old revision restored (2022/08/06 04:27)
template:iso-mod-script-functions [2023/09/10 03:46] (current)
xifanie old revision restored (2023/06/08 15:22)
Line 1: Line 1:
 ===== ISO-Specific ===== ===== ISO-Specific =====
  
-''this.game.openVanillaImg()'' +<code>this.game.openVanillaImg()</code>
 Opens the Vanilla Image specified by the ''Vanilla_Image_Path'' option for reading. Opens the Vanilla Image specified by the ''Vanilla_Image_Path'' option for reading.
  
 ---- ----
  
-''this.game.closeVanillaImg()''+<code>this.game.closeVanillaImg()</code>
  
 Closes the Vanilla Image opened by ''openVanillaImg''. Closes the Vanilla Image opened by ''openVanillaImg''.
Line 13: Line 12:
 ---- ----
  
-''this.game.openModImg(flags = 'r+')''+<code>this.game.openModImg(flags = 'r+')</code>
  
 Opens the Modification Image specified by the ''Mod_Image_Path'' option (default: for writing). Opens the Modification Image specified by the ''Mod_Image_Path'' option (default: for writing).
Line 19: Line 18:
 ---- ----
  
-''this.game.closeModImg()''+<code>this.game.closeModImg()</code>
  
 Closes the Modification Image opened by ''openModImg'' Closes the Modification Image opened by ''openModImg''
Line 25: Line 24:
 ---- ----
  
-''this.game.copyVanillaImgFile(vanillaFilePath, modFilePath, startSector = null)''+<code>this.game.copyVanillaImgFile(vanillaFilePath, modFilePath, startSector = null)</code>
  
 Reads the content of ''vanillaFilePath'' on the Vanilla ISO (''this.game.vanillaImg''), creates a new file under ''modFilePath'' in the Modification ISO, and then imports the Vanilla file's data at the given sector. If ''startSector'' isn't specified, the function will automatically search for free space. Reads the content of ''vanillaFilePath'' on the Vanilla ISO (''this.game.vanillaImg''), creates a new file under ''modFilePath'' in the Modification ISO, and then imports the Vanilla file's data at the given sector. If ''startSector'' isn't specified, the function will automatically search for free space.
Line 33: Line 32:
 ---- ----
  
-''this.game.wipeModImg()''+<code>this.game.wipeModImg()</code>
  
 Deletes the current Modification ISO and copies over the Vanilla ISO. Deletes the current Modification ISO and copies over the Vanilla ISO.
  
template/iso-mod-script-functions.1686175150.txt.gz · Last modified: 2023/06/07 21:59 by 52.74.241.251