Changeset 133 for binary-improvements/assembly-patcher
- Timestamp:
- Aug 27, 2014, 3:29:15 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/assembly-patcher/Main.cs
r130 r133 41 41 { 42 42 TypeDefinition type = module.GetType ("ConsoleSdtd"); 43 replaceMethod (type, "ExecuteCmdFromClient", true, 3, typeof(AllocsFixes. ConsoleOutputSeparator).GetMethod ("C_ExecuteCmdFromClient"));44 addHook (type, "Run", true, 0, true, typeof(AllocsFixes. ConsoleOutputSeparator).GetMethod ("C_Run"));45 replaceMethod (type, "SendResult", true, 1, typeof(AllocsFixes. ConsoleOutputSeparator).GetMethod ("C_SendResult"));43 replaceMethod (type, "ExecuteCmdFromClient", true, 3, typeof(AllocsFixes.NetConnections.ConsoleOutputSeparator).GetMethod ("C_ExecuteCmdFromClient")); 44 addHook (type, "Run", true, 0, true, typeof(AllocsFixes.NetConnections.ConsoleOutputSeparator).GetMethod ("C_Run")); 45 replaceMethod (type, "SendResult", true, 1, typeof(AllocsFixes.NetConnections.ConsoleOutputSeparator).GetMethod ("C_SendResult")); 46 46 } 47 47 … … 68 68 { 69 69 TypeDefinition type = module.GetType ("NetTelnetServer"); 70 replaceMethod (type, ".ctor", false, 1, typeof(AllocsFixes. AllocsNetTelnetServer).GetMethod ("init"));71 replaceMethod (type, "Disconnect", false, 0, typeof(AllocsFixes. AllocsNetTelnetServer).GetMethod ("Disconnect"));72 replaceMethod (type, "SetConsole", false, 1, typeof(AllocsFixes. AllocsNetTelnetServer).GetMethod ("SetConsole"));73 replaceMethod (type, "WriteToClient", false, 1, typeof(AllocsFixes. AllocsNetTelnetServer).GetMethod ("WriteToClient"));70 replaceMethod (type, ".ctor", false, 1, typeof(AllocsFixes.NetConnections.NetTelnetServer).GetMethod ("init")); 71 replaceMethod (type, "Disconnect", false, 0, typeof(AllocsFixes.NetConnections.NetTelnetServer).GetMethod ("Disconnect")); 72 replaceMethod (type, "SetConsole", false, 1, typeof(AllocsFixes.NetConnections.NetTelnetServer).GetMethod ("SetConsole")); 73 replaceMethod (type, "WriteToClient", false, 1, typeof(AllocsFixes.NetConnections.NetTelnetServer).GetMethod ("WriteToClient")); 74 74 } 75 75
Note:
See TracChangeset
for help on using the changeset viewer.