chore(all): resolve lint findings, update example plugin, refine docs and add LGPL licenses

This commit is contained in:
2026-10-07 00:57:35 +08:00
parent e8e9d77974
commit 8e8ddeddb6
388 changed files with 4638 additions and 3321 deletions
@@ -43,9 +43,7 @@ internal static class CaptureStorageIsolation
{
PropertyInfo persistent = typeof(Application).GetGameProperty(
"persistentDataPath", BindingFlags.Static | BindingFlags.Public);
MethodInfo getter = persistent?.GetGetMethod();
if (getter == null)
throw new MissingMethodException("Application.persistentDataPath getter not found");
MethodInfo getter = (persistent?.GetGetMethod()) ?? throw new MissingMethodException("Application.persistentDataPath getter not found");
harmony.Patch(getter, prefix: new HarmonyMethod(
typeof(CaptureStorageIsolation), nameof(PersistentDataPathPrefix)));