Test module initializer instead of static constructor
This commit is contained in:
parent
58da62baaa
commit
f5e3c38887
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Raylib_cs
|
||||
|
|
@ -39,7 +40,8 @@ namespace Raylib_cs
|
|||
/// </summary>
|
||||
public static unsafe class Logging
|
||||
{
|
||||
static Logging()
|
||||
[ModuleInitializer]
|
||||
internal static void SetDefaultCallback()
|
||||
{
|
||||
Raylib.SetTraceLogCallback(&LogConsole);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue