Cleanup 2

This commit is contained in:
copecone committed 2026-06-01 11:00:31 +09:00
1 parent 19e9bb68af
commit f6e32e6e1f
2 files changed
+8 -23

No files matched your search

+6 -22
View File
@@ -321,9 +321,7 @@ namespace ADOFAIRenderer.Core
}
if (Instance != null)
{
Instance.levelPath = ADOBase.levelPath;
}
scnEditor.instance.CheckUnsavedChanges(() =>
{
@@ -504,30 +502,18 @@ namespace ADOFAIRenderer.Core
continue;
}
if (isRenderCancelled)
{
break;
}
if (isRenderCancelled) break;
if (endRequested)
{
if (passCount > lastRequestedVideoFrameIndex)
{
break;
}
if (passCount > lastRequestedVideoFrameIndex) break;
}
Thread.Sleep(1);
}
if (isRenderCancelled)
{
videoFFmpeg.Kill();
}
else
{
videoFFmpeg.Close();
}
if (isRenderCancelled) videoFFmpeg.Kill();
else videoFFmpeg.Close();
lock (_allVideoFFmpegInstances)
{
@@ -582,10 +568,8 @@ namespace ADOFAIRenderer.Core
Destroy(_escapeHandlerObj);
_escapeHandlerObj = null;
}
if (success)
{
StartCoroutine(StopRenderCoroutine());
}
if (success) StartCoroutine(StopRenderCoroutine());
else
{
Melon<RenderMod>.Logger.Error("렌더링이 실패했거나 취소되었습니다. 상태 및 리소스를 안전하게 청소합니다.");
+2 -1
View File
@@ -5,7 +5,7 @@ using MelonLoader;
using UnityEngine;
using UnityEngine.EventSystems;
[assembly: MelonInfo(typeof(RenderMod), "ADOFAI Renderer", "0.0.6-BETA", "ADOFAI Editor Forum")]
[assembly: MelonInfo(typeof(RenderMod), "ADOFAI Renderer", "0.1.0-BETA", "ADOFAI Editor Forum")]
[assembly: MelonGame("7th Beat Games", "A Dance of Fire and Ice")]
namespace ADOFAIRenderer
@@ -13,6 +13,7 @@ namespace ADOFAIRenderer
public class RenderMod : MelonMod
{
public static AssetBundle FontBundle = null!;
// ReSharper disable once MemberCanBePrivate.Global
public static AssetBundle SceneBundle = null!;
public static string[] ModScenes = {};