Skip to content

Commit

Permalink
Demistify Unity errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Renzo904 committed Jan 14, 2025
1 parent 36b7077 commit 114394d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions TekaTeka/Plugins/CustomSongLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ public static void InitializeLoader()
}
}

#if DEBUG
[HarmonyPrefix]
[HarmonyPatch(typeof(UnityEngine.Logger), nameof(UnityEngine.Logger.LogException))]
[HarmonyPatch(new Type[] { typeof(Il2CppSystem.Exception), typeof(UnityEngine.Object) })]
static void DemistifyStackTrace(Il2CppSystem.Exception exception, UnityEngine.Object context)
{
Logger.Log(exception.GetStackTrace(true));
}
#endif

#region Append Custom Songs DB

Expand Down

0 comments on commit 114394d

Please sign in to comment.