예제 #1
0
        public VdfsWriter(string path, string comment, GothicVersion gothicVersion)
        {
            var fileStream = new FileStream(path, FileMode.Create, FileAccess.Write);

            _writer = new BinaryWriter(fileStream);

            _header.Comment = comment;

            _gothicVersion = gothicVersion;
        }
예제 #2
0
 public GothicProcess(GothicVersion gameVersion, String processName)
 {
     this.GameVersion   = gameVersion;
     this.Process       = Process.GetProcessesByName(processName).FirstOrDefault();
     this.ProcessHandle = Kernel32.OpenProcess(Kernel32.ProcessAccessFlags.All, false, this.Process.Id);
 }