Rename LuaCsHook
This commit is contained in:
committed by
Maplewheels
parent
3b65ea9008
commit
c6c0aadb00
-12
@@ -786,11 +786,6 @@ namespace Barotrauma
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (luaCs.PerformanceCounter.EnablePerformanceCounter)
|
|
||||||
{
|
|
||||||
performanceMeasurement.Start();
|
|
||||||
}
|
|
||||||
|
|
||||||
var result = tuple.Item1.func(args);
|
var result = tuple.Item1.func(args);
|
||||||
|
|
||||||
if (result is DynValue luaResult)
|
if (result is DynValue luaResult)
|
||||||
@@ -813,13 +808,6 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
lastResult = (T)result;
|
lastResult = (T)result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (luaCs.PerformanceCounter.EnablePerformanceCounter)
|
|
||||||
{
|
|
||||||
performanceMeasurement.Stop();
|
|
||||||
//luaCs.PerformanceCounter.SetHookElapsedTicks(name, key, performanceMeasurement.ElapsedTicks); TODO
|
|
||||||
performanceMeasurement.Reset();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Reference in New Issue
Block a user