YMM4の読み込み順で映像ソースを開く処理を追加する
このコミットが含まれているのは:
1ファイル変更
+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;
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする