GetLoadedSaveSize

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Returns the size of last loaded or quickloaded savegame.

Syntax

[help]
(fValue:float) GetLoadedSaveSize iFileType:int

File types

0 - .FOS file;
1 - .NVSE file;

Example

set fValue to GetLoadedSaveSize 0

Will return the size of last loaded savegame in bytes.

Notes

  • To convert returned value to megabytes - multiply it by * 0.000001. You may use RoundAlt to get rid of float noise.
  • If you call this function before user loaded a savegame in this gamesession it will return value of "-1".


See Also