Changeset 130 for binary-improvements/assembly-patcher
- Timestamp:
- Aug 26, 2014, 4:41:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/assembly-patcher/Main.cs
r128 r130 35 35 { 36 36 TypeDefinition type = module.GetType ("Chunk"); 37 addHook (type, "CalcMapColors", true, 0, true, typeof( MapRendering).GetMethod ("RenderSingleChunk"));37 addHook (type, "CalcMapColors", true, 0, true, typeof(AllocsFixes.MapRendering.MapRendering).GetMethod ("RenderSingleChunk")); 38 38 } 39 39 … … 41 41 { 42 42 TypeDefinition type = module.GetType ("ConsoleSdtd"); 43 replaceMethod (type, "ExecuteCmdFromClient", true, 3, typeof( ConsoleOutputSeparator).GetMethod ("C_ExecuteCmdFromClient"));44 addHook (type, "Run", true, 0, true, typeof( ConsoleOutputSeparator).GetMethod ("C_Run"));45 replaceMethod (type, "SendResult", true, 1, typeof( ConsoleOutputSeparator).GetMethod ("C_SendResult"));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")); 46 46 } 47 47 … … 49 49 { 50 50 TypeDefinition type = module.GetType ("GameManager"); 51 addHook (type, "SavePlayerData", true, 2, true, typeof( PlayerDataStuff).GetMethod ("GM_SavePlayerData"));52 addHook (type, "Awake", true, 0, true, typeof( CommandExtensions).GetMethod ("InitCommandExtensions"));51 addHook (type, "SavePlayerData", true, 2, true, typeof(AllocsFixes.PlayerDataStuff).GetMethod ("GM_SavePlayerData")); 52 addHook (type, "Awake", true, 0, true, typeof(AllocsFixes.CommandExtensions).GetMethod ("InitCommandExtensions")); 53 53 } 54 54 … … 56 56 { 57 57 TypeDefinition type = module.GetType ("AdminTools"); 58 replaceMethod (type, "GetAllowedCommandsList", true, 1, typeof(A dminToolsStuff).GetMethod ("GetAllowedCommandsList"));58 replaceMethod (type, "GetAllowedCommandsList", true, 1, typeof(AllocsFixes.AdminToolsStuff).GetMethod ("GetAllowedCommandsList")); 59 59 } 60 60 … … 62 62 { 63 63 TypeDefinition type = module.GetType ("GameManager"); 64 addHook (type, "RequestToSpawnPlayer", true, 5, true, typeof(Allocs LogFunctions).GetMethod ("RequestToSpawnPlayer"));64 addHook (type, "RequestToSpawnPlayer", true, 5, true, typeof(AllocsFixes.AllocsLogFunctions).GetMethod ("RequestToSpawnPlayer")); 65 65 } 66 66 … … 68 68 { 69 69 TypeDefinition type = module.GetType ("NetTelnetServer"); 70 replaceMethod (type, ".ctor", false, 1, typeof(Allocs NetTelnetServer).GetMethod ("init"));71 replaceMethod (type, "Disconnect", false, 0, typeof(Allocs NetTelnetServer).GetMethod ("Disconnect"));72 replaceMethod (type, "SetConsole", false, 1, typeof(Allocs NetTelnetServer).GetMethod ("SetConsole"));73 replaceMethod (type, "WriteToClient", false, 1, typeof(Allocs NetTelnetServer).GetMethod ("WriteToClient"));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")); 74 74 } 75 75
Note:
See TracChangeset
for help on using the changeset viewer.