00:00
00:00
Newgrounds Background Image Theme

Dakale just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become 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.