User Tools

Site Tools


template:iso-mod-script-functions

ISO-Specific

this.game.openVanillaImg()

Opens the Vanilla Image specified by the Vanilla_Image_Path option for reading.


this.game.closeVanillaImg()

Closes the Vanilla Image opened by openVanillaImg.


this.game.openModImg(flags = 'r+')

Opens the Modification Image specified by the Mod_Image_Path option (default: for writing).


this.game.closeModImg()

Closes the Modification Image opened by openModImg


this.game.copyVanillaImgFile(vanillaFilePath, modFilePath, startSector = null)

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.

* vanillaFilePath/modFilePath format: CD/Path/To/File.ext


this.game.wipeModImg()

Deletes the current Modification ISO and copies over the Vanilla ISO.

template/iso-mod-script-functions.txt · Last modified: 2023/09/10 03:46 by xifanie