cache_directory

This function returns the cache directory for your game. Use this directory to store cached data that is not permanently needed for your game.

On some consoles, certain options may need to be enabled for this to hold a valid path.

NOTE The cache_directory variable stores the path including the final slash.

 

Syntax:

cache_directory

 

Returns:

String

 

Example:

ini_open(cache_directory + "\cache_ini.ini");

This will open an INI file in the cache directory of the game (creating it if it does not already exist).