public PCCPackage(DLCPackage dlc, int index, bool loadfull = true, bool verbosemode = false) { try { Verbose = verbosemode; var m = dlc.DecompressEntry(index); GeneralInfo = new MetaInfo { inDLC = true, loadfull = loadfull, filepath = dlc.MyFileName, inDLCPath = dlc.Files[index].FileName, dlc = dlc, inDLCIndex = index }; Load(m); GeneralInfo.loaded = true; } catch (Exception ex) { //DebugLog.PrintLn("PCCPACKAGE::PCCPACKAGE ERROR:\n" + ex.Message); } }
public void DebugPrint() { int count = 0; DebugLog.PrintLn("Listing Files...(" + Entries.Count + ")"); foreach (Entry e in Entries) { DebugLog.PrintLn((count++) + " : " + e.name + " Size: " + DLCPackage.BytesToString(e.size), false); } }
public PCCPackage(DLCPackage dlc, int Index, bool loadfull = true, bool verbosemode = false) { try { verbose = verbosemode; MemoryStream m = dlc.DecompressEntry(Index); GeneralInfo = new MetaInfo(); GeneralInfo.inDLC = true; GeneralInfo.loadfull = loadfull; GeneralInfo.filepath = dlc.MyFileName; GeneralInfo.inDLCPath = dlc.Files[Index].FileName; GeneralInfo.dlc = dlc; GeneralInfo.inDLCIndex = Index; Load(m); GeneralInfo.loaded = true; } catch (Exception ex) { DebugLog.PrintLn("PCCPACKAGE::PCCPACKAGE ERROR:\n" + ex.Message); } }