Table of Contents

Interface IGameFileSystem

Namespace
SkyrimForge
Assembly
SkyrimForge.dll

The files under the game's Data folder, whether loose or packed in a .bsa archive. A loose file is read in preference to an archived one at the same path.

public interface IGameFileSystem

Remarks

A path is relative to the Data folder, as in Interface\Controls\PC\keyboard_english.txt, and is not case-sensitive. Either separator is accepted.

Methods

Exists(string)

Whether the game finds a file at the path.

bool Exists(string path)

Parameters

path string

Returns

bool

Exceptions

ArgumentNullException

path is null.

ReadAllBytes(string)

Reads the whole of the file at the path.

byte[] ReadAllBytes(string path)

Parameters

path string

Returns

byte[]

Exceptions

ArgumentNullException

path is null.

FileNotFoundException

The game finds no file at the path.

IOException

The game found the file and reported an error reading it.