mirror of
https://github.com/Raicuparta/nomai-vr.git
synced 2025-12-11 20:15:08 +01:00
Use OWML logs
This commit is contained in:
parent
1a9cfcfbd2
commit
1800795a81
@ -7,7 +7,7 @@ namespace NomaiVR.Loaders
|
||||
{
|
||||
public class NomaiVRLoaderOwml : ModBehaviour
|
||||
{
|
||||
private IModHelper Helper { get; set; }
|
||||
public static IModHelper Helper { get; private set; }
|
||||
internal void Start()
|
||||
{
|
||||
NomaiVR.HarmonyInstance = new OwmlHarmonyInstance(ModHelper);
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using NomaiVR.ModConfig;
|
||||
using NomaiVR.Loaders;
|
||||
using NomaiVR.ModConfig;
|
||||
|
||||
namespace NomaiVR
|
||||
{
|
||||
@ -19,15 +20,15 @@ namespace NomaiVR
|
||||
switch (messageType)
|
||||
{
|
||||
case MessageType.Error:
|
||||
UnityEngine.Debug.LogError(message);
|
||||
NomaiVRLoaderOwml.Helper.Console.WriteLine(message, OWML.Common.MessageType.Error);
|
||||
break;
|
||||
|
||||
case MessageType.Warning:
|
||||
UnityEngine.Debug.LogWarning(message);
|
||||
NomaiVRLoaderOwml.Helper.Console.WriteLine(message, OWML.Common.MessageType.Warning);
|
||||
break;
|
||||
|
||||
default:
|
||||
UnityEngine.Debug.Log(message);
|
||||
NomaiVRLoaderOwml.Helper.Console.WriteLine(message, OWML.Common.MessageType.Info);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user