C# Класс RocksmithToolkitLib.DLCPackage.Packer

Показать файл Открыть проект

Открытые методы

Метод Описание
DeleteFixedAudio ( string sourcePath ) : void
GetPlatform ( this fullPath ) : Platform
Pack ( string sourcePath, string saveFileName, bool updateSng = false, Platform predefinedPlatform = null, bool updateManifest = false, bool fixShowlights = true ) : void
TryGetPlatformByEndName ( string fileName ) : Platform

Gets platform from name ending

Unpack ( string sourceFileName, string savePath, bool decodeAudio = false, bool overwriteSongXml = false, Platform predefinedPlatform = null ) : string

Unpack the specified File, returns unpacked dir.

Приватные методы

Метод Описание
ExtractPSARC ( string filename, string savePath, Stream inputStream, System.Platform platform, bool isExternalFile = true ) : void
GetHeaderValue ( this value ) : string
Pack2014 ( string sourcePath, string saveFileName, Platform platform, bool updateSng, bool updateManifest, bool fixShowlights = true ) : void
PackInnerPC ( Stream output, string directory ) : void
PackInnerXBox360 ( string sourcePath, string directory ) : void
PackPC ( string sourcePath, string saveFileName, bool useCryptography, bool updateSng ) : void
PackPS3 ( string sourcePath, string saveFileName, Platform platform, bool updateSng, bool updateManifest ) : void
PackXBox360 ( string sourcePath, string saveFileName, Platform platform, bool updateSng, bool updateManifest ) : void
UnpackPS3Package ( string sourceFileName, string savePath, Platform platform ) : void
UnpackXBox360Package ( string sourceFileName, string savePath, Platform platform ) : void
UpdateManifest2014 ( string songDirectory, Platform platform ) : void
UpdateShl ( string shlPath, bool fixShowlights = true ) : void

Fixes showlights and updates existing xml.

UpdateSng ( string songDirectory, Platform platform ) : void
UpdateSng2014 ( string songDirectory, Platform targetPlatform, bool fixShowlights = true ) : void
WalkThroughDirectory ( string baseDir, string directory, string>.Action action ) : void

Описание методов

DeleteFixedAudio() публичный статический Метод

public static DeleteFixedAudio ( string sourcePath ) : void
sourcePath string
Результат void

GetPlatform() публичный статический Метод

public static GetPlatform ( this fullPath ) : Platform
fullPath this
Результат Platform

Pack() публичный статический Метод

public static Pack ( string sourcePath, string saveFileName, bool updateSng = false, Platform predefinedPlatform = null, bool updateManifest = false, bool fixShowlights = true ) : void
sourcePath string
saveFileName string
updateSng bool
predefinedPlatform Platform
updateManifest bool
fixShowlights bool
Результат void

TryGetPlatformByEndName() публичный статический Метод

Gets platform from name ending
public static TryGetPlatformByEndName ( string fileName ) : Platform
fileName string Folder of File
Результат Platform

Unpack() публичный статический Метод

Unpack the specified File, returns unpacked dir.
public static Unpack ( string sourceFileName, string savePath, bool decodeAudio = false, bool overwriteSongXml = false, Platform predefinedPlatform = null ) : string
sourceFileName string Source file path.
savePath string Save path.
decodeAudio bool If set to true decode audio.
overwriteSongXml bool If set to true overwrite existing song (EOF) xml with SNG data
predefinedPlatform Platform Predefined source platform.
Результат string