Use OWML logs

This commit is contained in:
Raicuparta 2021-11-13 19:31:09 +01:00
parent 1a9cfcfbd2
commit 1800795a81
2 changed files with 6 additions and 5 deletions

View File

@ -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);

View File

@ -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;
}
}