Our goal is for Newgrounds to be ad free for everyone! Become a Supporter today and help make this dream a reality!

Browse Sections

Newgrounds Wiki: getCurrentSaveFile


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

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.