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
pathstring
Returns
Exceptions
- ArgumentNullException
pathisnull.
ReadAllBytes(string)
Reads the whole of the file at the path.
byte[] ReadAllBytes(string path)
Parameters
pathstring
Returns
- byte[]
Exceptions
- ArgumentNullException
pathisnull.- FileNotFoundException
The game finds no file at the path.
- IOException
The game found the file and reported an error reading it.