C# Class RocksmithToolkitLib.DLCPackage.Packer

Datei anzeigen Open project: rscustom/rocksmith-custom-song-toolkit

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

DeleteFixedAudio() public static method

public static DeleteFixedAudio ( string sourcePath ) : void
sourcePath string
return void

GetPlatform() public static method

public static GetPlatform ( this fullPath ) : Platform
fullPath this
return Platform

Pack() public static method

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
return void

TryGetPlatformByEndName() public static method

Gets platform from name ending
public static TryGetPlatformByEndName ( string fileName ) : Platform
fileName string Folder of File
return Platform

Unpack() public static method

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.
return string