Be a Supporter!

Browse Sections


Newgrounds Wiki: getCurrentSaveFile

Usage

import com.newgrounds.API;
import com.newgrounds.SaveGroup;
import com.newgrounds.SaveFile;

API.getCurrentSaveFile();
This call gets the current SaveFile instance.

The current instance is set when you run the loadSaveFile command, or when you use the loadContents method of a SaveFile instance.

If there is no current save file (no file has been loaded, or the API is waiting for a server response), this command will return null.