Метод | Описание | |
---|---|---|
BeginReadOnlyTransaction ( |
Starts a read-only transaction. This puts the OMod into read-only mode. Read-only mode can greatly increase the speed at which multiple file are extracted. |
|
ContainsFile ( string p_strPath ) : bool |
Determines if the OMod contains the given file.
|
|
EndReadOnlyTransaction ( ) : void |
Ends a read-only transaction. This takes the OMod out of read-only mode. Read-only mode can greatly increase the speed at which multiple file are extracted. |
|
GetFile ( string p_strFile ) : byte[] |
Retrieves the specified file from the OMod.
|
|
GetFileList ( ) : List |
Retrieves the list of files in this OMod.
|
|
GetFileList ( string p_strFolderPath, bool p_booRecurse ) : List |
Retrieves the list of all files in the specified OMod folder.
|
|
IsMatchingVersion ( ) : bool |
Determines if last known version is the same as the current version.
|
|
OMod ( string p_strFilePath, |
A simple constructor that initializes the OMod from the specified file.
|
|
ToString ( ) : string |
Uses the mod name to represent to mod.
|
|
UpdateInfo ( IModInfo p_mifInfo, bool p_booOverwriteAllValues ) : void |
Updates the object's properties to the values of the given IModInfo.
|
Метод | Описание | |
---|---|---|
DeleteSpecialFile ( string p_strPath ) : void |
Deletes the specified file.
|
|
ExtractConfig ( SevenZip.SevenZipExtractor p_szeOmod ) : void |
Loads the mod metadata from the config file.
|
|
ExtractDataFileList ( SevenZip.SevenZipExtractor p_szeOmod ) : void |
Loads the list of data files in the mod.
|
|
ExtractPluginList ( SevenZip.SevenZipExtractor p_szeOmod ) : void |
Loads the list of plugins in the mod.
|
|
FindPathPrefix ( ) : void |
This finds where in the archive the FOMod file structure begins. This methods finds the path prefix to the folder containing the core files and folders of the FOMod. If there are any files that are above the core folder, than they are given new file names inside the core folder. |
|
GetRealPath ( string p_strPath ) : string |
This method adjusts the given virtual path to the actual path to the file in the mod. This method account for the virtual restructuring of the mod file structure performed by FindPathPrefix(). |
|
GetSpecialFile ( string p_strFile ) : byte[] |
Retrieves the specified file from the OMod.
|
|
LoadInfo ( byte p_bteData ) : void |
Deserializes an IModInfo from the given data.
|
|
ReplaceSpecialFile ( string p_strPath, byte p_bteData ) : void |
Replaces the specified file with the given data.
|
|
ReplaceSpecialFile ( string p_strPath, string p_strData ) : void |
Replaces the specified file with the given text.
|
|
SaveInfo ( ) : byte[] |
Serializes this IModInfo to a data block, suitable to write to a file.
|
|
ValidateConfig ( byte p_bteData ) : bool |
Validates an OMod config file.
|
Метод | Описание | |
---|---|---|
ArchiveFile_ReadOnlyInitProgressUpdated ( object sender, |
Handles the Archive.ReadOnlyInitProgressUpdated event of the mod's archive file. This raises the mod's ReadOnlyInitProgressUpdated event. |
|
Archive_FilesChanged ( object sender, |
Handles the Archive.FilesChanged event of the FOMod's archive. This ensures that the path prefix that points to the folder in the archive that contains the core files and folders of the FOMod is updated when the archive changes. |
|
InitializePackedOmod ( IScriptTypeRegistry p_stgScriptTypeRegistry ) : void |
Initializes an OMod in packed format.
|
|
InitializeUnpackedOmod ( bool p_booUseCache, IModCacheManager p_mcmModCacheManager, IScriptTypeRegistry p_stgScriptTypeRegistry ) : void |
Initializes an OMod in OMod-ready archive format.
|
|
UpdateFileStreamExtractionProgress ( float p_fltPercentDone ) : void |
Updates the progress of the read only initialization while extracting file blocks.
|
|
UpdateReadOnlyInitProgress ( float p_fltBasePercent, float p_fltPercentBlockSize, float p_fltPercentDone ) : void |
Updates the progress of the read only initialization.
|
|
dpwWatcher_ProgressUpdated ( object sender, EventArgs |
Handles the DecoderProgressWatcher.ProgressUpdated event of the watcher that is monitoring the extraction of compressed files blocks.
|
|
szeZip_Extracting ( object sender, SevenZip.ProgressEventArgs e ) : void |
Handles the SevenZipExtractor.Extracting event of the extractor that is extracting the compressed files blocks.
|
public BeginReadOnlyTransaction ( |
||
p_futFileUtil | ||
Результат | void |
public ContainsFile ( string p_strPath ) : bool | ||
p_strPath | string | The filename whose existence in the OMod is to be determined. |
Результат | bool |
protected DeleteSpecialFile ( string p_strPath ) : void | ||
p_strPath | string | The path of the file to delete. |
Результат | void |
protected ExtractConfig ( SevenZip.SevenZipExtractor p_szeOmod ) : void | ||
p_szeOmod | SevenZip.SevenZipExtractor | The extractor from which to read the config file. |
Результат | void |
protected ExtractDataFileList ( SevenZip.SevenZipExtractor p_szeOmod ) : void | ||
p_szeOmod | SevenZip.SevenZipExtractor | The extractor from which to read the file list. |
Результат | void |
protected ExtractPluginList ( SevenZip.SevenZipExtractor p_szeOmod ) : void | ||
p_szeOmod | SevenZip.SevenZipExtractor | The extractor from which to read the plugin list. |
Результат | void |
public GetFile ( string p_strFile ) : byte[] | ||
p_strFile | string | The file to retrieve. |
Результат | byte[] |
public GetFileList ( string p_strFolderPath, bool p_booRecurse ) : List |
||
p_strFolderPath | string | The OMod folder whose file list is to be retrieved. |
p_booRecurse | bool | Whether to return files that are in subdirectories of the given directory. |
Результат | List |
protected GetRealPath ( string p_strPath ) : string | ||
p_strPath | string | The path to adjust. |
Результат | string |
protected GetSpecialFile ( string p_strFile ) : byte[] | ||
p_strFile | string | The file to retrieve. |
Результат | byte[] |
protected LoadInfo ( byte p_bteData ) : void | ||
p_bteData | byte | The data from which to deserialize the |
Результат | void |
public OMod ( string p_strFilePath, |
||
p_strFilePath | string | The mod file from which to create the OMod. |
p_mftModFormat | The format of the mod. | |
p_mcmModCacheManager | IModCacheManager | The manager for the current game mode's mod cache. |
p_stgScriptTypeRegistry | IScriptTypeRegistry | The registry of supported script types. |
Результат | System |
protected ReplaceSpecialFile ( string p_strPath, byte p_bteData ) : void | ||
p_strPath | string | The path of the file to replace. |
p_bteData | byte | The new file data. |
Результат | void |
protected ReplaceSpecialFile ( string p_strPath, string p_strData ) : void | ||
p_strPath | string | The path of the file to replace. |
p_strData | string | The new file text. |
Результат | void |
public UpdateInfo ( IModInfo p_mifInfo, bool p_booOverwriteAllValues ) : void | ||
p_mifInfo | IModInfo | The |
p_booOverwriteAllValues | bool | Whether to overwrite the current info values, /// or just the empty ones. |
Результат | void |
protected ValidateConfig ( byte p_bteData ) : bool | ||
p_bteData | byte | The OMod config file. |
Результат | bool |