Skip to content

OnNewSave

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnNewSave( string strFilename )
{
    Puts( "OnNewSave works!" );
}

Location

  • SaveRestore::Load(string strFilename, bool allowOutOfDateSaves)
csharp
//---
		{
			strFilename = World.SaveFolderName + "/" + World.SaveFileName;
		}
		if (!File.Exists(strFilename))
		{
			Interface.CallHook("OnNewSave", strFilename);
			if (!File.Exists("TestSaves/" + strFilename))
			{
				UnityEngine.Debug.LogWarning("Couldn't load " + strFilename + " - file doesn't exist");
				result = false;
				return result;
//---

Released under the MIT License.