Update to latest stuff from death

This commit is contained in:
Lucas Nicodemus 2016-12-06 20:34:12 -07:00
parent 678f6c7cf8
commit e4313b6433
No known key found for this signature in database
GPG key ID: CEE668CCE1BF2C7C
4 changed files with 192 additions and 4 deletions

View file

@ -40,6 +40,7 @@ using TShockAPI.Hooks;
using TShockAPI.ServerSideCharacters;
using Terraria.Utilities;
using Microsoft.Xna.Framework;
using TShockAPI.Sockets;
namespace TShockAPI
{
@ -184,7 +185,20 @@ namespace TShockAPI
string logFilename;
string logPathSetupWarning;
TerrariaApi.Reporting.CrashReporter.HeapshotRequesting += CrashReporter_HeapshotRequesting;
OTAPI.Hooks.Net.Socket.Create = () =>
{
//Console.WriteLine($"Creating socket {nameof(LinuxTcpSocket)}");
return new LinuxTcpSocket();
//return new OTAPI.Sockets.PoolSocket();
//return new Terraria.Net.Sockets.TcpSocket();
};
OTAPI.Hooks.Player.Announce = (int playerId) =>
{
//TShock handles this
return OTAPI.HookResult.Cancel;
};
TerrariaApi.Reporting.CrashReporter.HeapshotRequesting += CrashReporter_HeapshotRequesting;
try
{