Ignore:
Timestamp:
Jul 18, 2014, 3:48:29 AM (11 years ago)
Author:
alloc
Message:

server fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/assembly-patcher/Main.cs

    r76 r83  
    1313                        telnetPatch (module);
    1414                        connectLogPatch (module);
     15                        executionLogPatch( module);
    1516                        module.Write ("Assembly-CSharp.dll");
    1617                        Console.WriteLine ("Done");
     
    2627
    2728                        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"));
    2942                }
    3043
Note: See TracChangeset for help on using the changeset viewer.