DeleteScreenshot

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Deletes screenshot previously taken using CaptureScreenshot function.

Syntax

[help]
DeleteScreenshot Folder:string File:string

Example

DeleteScreenshot  "MyMod" "MyImage.jpg"

Will remove "MyImage.jpg" which will is located in "Data\\textures\\SUPScreenshots\\MyMod" folder.

Notes

  • This function will only delete screenshots in "Data\\textures\\SUPScreenshots" and nowhere else.
  • Opposed to CaptureScreenshotAlt function, you should specify image extension.
  • This function will return "-1" if file doesn't exist, and "-2" if folder doesn't correspong to game path.

See Also