|
1 |
| -using BepInEx; |
| 1 | +using BepInEx; |
2 | 2 | using BepInEx.Logging;
|
3 | 3 | using HarmonyLib;
|
4 | 4 | using MonoMod.RuntimeDetour;
|
| 5 | +using System.Linq; |
| 6 | +using System.Text; |
5 | 7 | using UnityDebuggerAssistant.Components;
|
6 | 8 | using UnityDebuggerAssistant.Filtering;
|
7 | 9 | using UnityDebuggerAssistant.Patches;
|
@@ -40,24 +42,34 @@ We assign it here
|
40 | 42 |
|
41 | 43 | /************************************************************
|
42 | 44 | Output big warning message here to help people understand
|
43 |
| - the actual use of this plugin |
| 45 | + the actual use of this plugin, also log configuration |
44 | 46 | ************************************************************/
|
45 | 47 |
|
46 |
| - Log.LogMessage(""" |
| 48 | + StringBuilder sb = new(""" |
| 49 | +
|
47 | 50 |
|
48 | 51 | >------------------------------------------------------------------------<
|
49 | 52 | Unity Debugger assistant is loaded and receiving exceptions!
|
50 | 53 |
|
51 | 54 | Note: That UDA will catch ALL exceptions, even harmless ones
|
52 | 55 | Please ONLY report logs to modders if you have an issue with their mod
|
53 |
| - >------------------------------------------------------------------------< |
54 |
| - """); |
55 | 56 |
|
56 |
| - //Log configuration here |
57 |
| - Log.LogInfo($"Using per/e whitelist: {UDASettings.EnableWhitelistPerException.Value}"); |
58 |
| - Log.LogInfo($"Using per/f whitelist: {UDASettings.EnableWhitelistPerFrame.Value}"); |
59 |
| - Log.LogInfo($"Using per/e blacklist: {UDASettings.EnableBlacklistPerException.Value}"); |
60 |
| - Log.LogInfo($"Using per/f blacklist: {UDASettings.EnableBlacklistPerFrame.Value}"); |
| 57 | + Config: |
| 58 | +
|
| 59 | + """); |
| 60 | + sb.Append(" Using Per-Exception Whitelist: "); |
| 61 | + sb.AppendLine(UDASettings.EnableWhitelistPerException.Value.ToString()); |
| 62 | + sb.Append(" Using Per-Exception Blacklist: "); |
| 63 | + sb.AppendLine(UDASettings.EnableBlacklistPerException.Value.ToString()); |
| 64 | + sb.Append(" Using Per-Frame Whitelist: "); |
| 65 | + sb.AppendLine(UDASettings.EnableWhitelistPerFrame.Value.ToString()); |
| 66 | + sb.Append(" Using Per-Frame Blacklist: "); |
| 67 | + sb.AppendLine(UDASettings.EnableBlacklistPerFrame.Value.ToString()); |
| 68 | + sb.Append(" Total Filters: "); |
| 69 | + sb.AppendLine((UDABlacklist.ExceptionBlackList.Count() + UDABlacklist.FrameBlackList.Count()).ToString()); |
| 70 | + sb.AppendLine(">------------------------------------------------------------------------<"); |
| 71 | + |
| 72 | + Log.LogMessage(sb); |
61 | 73 |
|
62 | 74 | // Add listeners
|
63 | 75 | ILHook.OnDetour += UDAPatchListener.ListenForPatch;
|
|
0 commit comments