コード例 #1
0
        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);
            }
        }
コード例 #2
0
 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);
     }
 }