saveInstalledPackages

Description

Saves an array (as generated by loadInstalledPackages) as the list of installed packages.

Syntax

void saveInstalledPackages (array $instmods)



Parameter $instmods

Expected type: Array
Description: An array of installed packages (mods, avatar packs, etc.)

Array Elements of $instmods
Key Optional Expected type Description
filename no String The name of the actual package file
id no String The internal package ID (used to uniquely identify each package)
name no String The name of the package
version no String The version of the package


Notes

  • Writes this information to Packages/installed.list.
  • Requires the above file to be writable.
  • Attempts to chmod the file if it isn't writable.
Advertisement: