Changeset 83 for binary-improvements/assembly-patcher
- Timestamp:
- Jul 18, 2014, 3:48:29 AM (10 years ago)
- Location:
- binary-improvements/assembly-patcher
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/assembly-patcher/Assembly-Patcher.userprefs
r78 r83 1 1 <Properties> 2 2 <MonoDevelop.Ide.Workspace ActiveConfiguration="Release|x86" /> 3 <MonoDevelop.Ide.Workbench ActiveDocument=" AssemblyInfo.cs">3 <MonoDevelop.Ide.Workbench ActiveDocument="Main.cs"> 4 4 <Files> 5 <File FileName="Main.cs" Line=" 38" Column="4" />5 <File FileName="Main.cs" Line="48" Column="3" /> 6 6 <File FileName="AssemblyInfo.cs" Line="21" Column="1" /> 7 7 </Files> -
binary-improvements/assembly-patcher/Main.cs
r76 r83 13 13 telnetPatch (module); 14 14 connectLogPatch (module); 15 executionLogPatch( module); 15 16 module.Write ("Assembly-CSharp.dll"); 16 17 Console.WriteLine ("Done"); … … 26 27 27 28 markTypePatched (module, type); 28 addHook (type, "RequestToSpawnPlayer", true, 5, true, typeof(AllocsRequestToSpawnPlayer).GetMethod ("RequestToSpawnPlayer")); 29 addHook (type, "RequestToSpawnPlayer", true, 5, true, typeof(AllocsLogFunctions).GetMethod ("RequestToSpawnPlayer")); 30 } 31 32 private static void executionLogPatch (ModuleDefinition module) 33 { 34 TypeDefinition type = module.GetType ("ConsoleSdtd"); 35 36 if (isPatched (type)) { 37 return; 38 } 39 40 markTypePatched (module, type); 41 addHook (type, "ExecuteCmdFromClient", true, 3, false, typeof(AllocsLogFunctions).GetMethod ("ExecuteCmdFromClient")); 29 42 } 30 43
Note:
See TracChangeset
for help on using the changeset viewer.