YMM4の読み込み順で映像ソースを開く処理を追加する

このコミットが含まれているのは:
routersys committed 2026-09-13 17:52:26 +09:00
1 親 c490912d93
コミット ce46cd4363
1ファイル変更
+25
+25
ファイルの表示
@@ -0,0 +1,25 @@
using YukkuriMovieMaker.Commons;
using YukkuriMovieMaker.Plugin;
using YukkuriMovieMaker.Plugin.FileSource;
namespace ProxyForge.Sources;
internal delegate IVideoFileSource? VideoSourceFactory(IGraphicsDevicesAndContext devices, string filePath);
internal static class VideoSourceLoader
{
public static IVideoFileSource? Load(IGraphicsDevicesAndContext devices, string filePath)
{
foreach (var plugin in PluginLoader.VideoFileSourcePlugins)
{
if (ReferenceEquals(plugin.GetType().Assembly, typeof(VideoSourceLoader).Assembly))
continue;
var source = plugin.CreateVideoFileSource(devices, filePath);
if (source is not null)
return source;
}
return null;
}
}