C# Class Nexus.Client.Games.Gamebryo.ModManagement.Scripting.BsaManager

Encapsulates the management of BSA files.
Inheritance: IDisposable
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode Description
BsaManager ( GamebryoGameModeBase p_gmdGameMode ) : System

A simple constructor the initializes the object with the given values.

Dispose ( ) : void

Disposes the BSA manager.

This method ensures that all BSAs have been released.

GetBSAFileList ( string p_strBsa ) : string[]

Retrieves the list of files in the specified BSA.

GetDataFileFromBSA ( string p_strBsa, string p_strFile ) : byte[]

Gets the specified file from the specified BSA.

Method Details

BsaManager() public méthode

A simple constructor the initializes the object with the given values.
public BsaManager ( GamebryoGameModeBase p_gmdGameMode ) : System
p_gmdGameMode GamebryoGameModeBase The game mode currently being managed.
Résultat System

Dispose() public méthode

Disposes the BSA manager.
This method ensures that all BSAs have been released.
public Dispose ( ) : void
Résultat void

GetBSAFileList() public méthode

Retrieves the list of files in the specified BSA.
Thrown if /// contains illegal characters or refers to a file outside of the Data directory. Thrown if the specified BSA cannot be loaded.
public GetBSAFileList ( string p_strBsa ) : string[]
p_strBsa string The BSA whose file listing is requested.
Résultat string[]

GetDataFileFromBSA() public méthode

Gets the specified file from the specified BSA.
Thrown if /// contains illegal characters or refers to a file outside of the Data directory, or /// if refers to an unsafe location. Thrown if the specified BSA cannot be loaded.
public GetDataFileFromBSA ( string p_strBsa, string p_strFile ) : byte[]
p_strBsa string The BSA from which to extract the specified file.
p_strFile string The files to extract form the specified BSA.
Résultat byte[]