public Patcher(TmodFile mod, string contentPath, string language) { _mod = mod; _contentPath = contentPath; _language = language; _assembly = _mod.GetPrimaryAssembly(false); _monoAssembly = _mod.GetPrimaryAssembly(true); }
public void Dump() { string o = Path.GetFileName(file).Replace(".tmod", ".dll"); if (File.Exists(o)) { File.Copy(o, o + ".bak"); } TmodFile tmf = new TmodFile(file); byte[] data; using (tmf.Open()) { data = tmf.GetPrimaryAssembly(false); } if (data == null) throw new Exception("未找到dll"); File.WriteAllBytes(o, data); }
public Dumper(TmodFile mod) { _mod = mod; _assembly = _mod.GetPrimaryAssembly(false); }