saveScreenshot

fnFault saveScreenshot(IStr path, ViewportId viewport, bool hasAlpha, IStr file = __FILE__, Sz line = __LINE__)

Saves an image taken from the given viewport. Uses the assets path unless the input starts with `/` or `\`, or isUsingAssetsPath is false. Path separators are normalized to the platform's native format.