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; }
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); }