Skip to content

Commit

Permalink
Update AdapterInjection.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArion committed Mar 15, 2022
1 parent ce8a387 commit 9268166
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AdapterInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ private static void Initialize(ref IntPtr data, IntPtr rm)
TryGetInstance(instanceID, out var instance); // We know it's not null since the ID is valid.
data = GCHandle.ToIntPtr(GCHandle.Alloc(instanceID)); // Possible expansion of storing meta-data into the pointer too such as number of reloads, and the instance itself. Hashtable or something.
instance.Pointer = data;
// instance.API.Log(API.LogType.Debug, $"ID: {instanceID}");
}

private static int InjectInstance(API meter)
Expand Down Expand Up @@ -160,7 +159,7 @@ private T ExceptionWrapper<T>(Func<T> func)
}
}

private void RaiseException(Exception e) => API?.Log(API.LogType.Error, $"Unhandled exception: {e}");
private void RaiseException(Exception e) => API?.Log(API.LogType.Error, $"Unhandled Exception: {e}");
private void ExceptionWrapper(ref double maxValue)
{
try
Expand Down

0 comments on commit 9268166

Please sign in to comment.