Ejemplo n.º 1
0
 private string GetDocumentHeader(FileInfo mpqFile)
 {
     using (StormLibWrapper.MpqArchive archive = new StormLibWrapper.MpqArchive(mpqFile.FullName))
     {
         using (StormLibWrapper.MpqInternalFile documentHeaderFile = archive.OpenFile("DocumentHeader"))
         {
             return(documentHeaderFile.ReadFile());
         }
     }
 }
Ejemplo n.º 2
0
 private string GetGalaxyScriptCode(FileInfo mpqFile)
 {
     using (StormLibWrapper.MpqArchive archive = new StormLibWrapper.MpqArchive(mpqFile.FullName))
     {
         using (StormLibWrapper.MpqInternalFile galaxyScriptFile = archive.OpenFile("MapScript.galaxy"))
         {
             return(galaxyScriptFile.ReadFile());
         }
     }
 }