GetSaveName

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Returns the name of last saved or loaded savegame(without extension).

Syntax

[help]
(filename:string) GetSaveName iFileType:int

File types

0 - last saved\quicksaved save;
1 - last loaded\quickloaded save;

Example

set sfilename to GetSaveName 0

Will return the name of last saved savegame in bytes.

Notes

  • If you call this function before user saved\loaded a savegame in this gamesession it will return a null value.
  • You shouldn't use this function with parameter 0 on "SaveGame" event handler because the value will not be yet avaiable. Execute it a frame later.

See Also