Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
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);
            }
        }
Exemplo n.º 3
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);
     }
 }
Exemplo n.º 4
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);
     }
 }