mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-01 18:20:12 +12:00
Finish .mat video support
This commit is contained in:
parent
ab3c39b26b
commit
f0e68fdd61
|
@ -211,7 +211,7 @@ namespace ModAssistant
|
|||
{
|
||||
Theme theme = new Theme(name, null);
|
||||
theme.Waifus = new Waifus();
|
||||
foreach (string file in Directory.EnumerateFiles(directory).OrderByDescending(x => x))
|
||||
foreach (string file in Directory.EnumerateFiles(directory).OrderBy(x => x))
|
||||
{
|
||||
FileInfo info = new FileInfo(file);
|
||||
if (info.Name.EndsWith(".png", StringComparison.OrdinalIgnoreCase) &&
|
||||
|
@ -292,6 +292,15 @@ namespace ModAssistant
|
|||
{
|
||||
file.ExtractToFile($"{ThemeDirectory}\\{name}\\_{name}.mp4", false);
|
||||
}
|
||||
else
|
||||
{
|
||||
//Check to see if the lengths of each file are different. If they are, overwrite what currently exists.
|
||||
FileInfo existingInfo = new FileInfo($"{ThemeDirectory}\\{name}\\_{name}.mp4");
|
||||
if (existingInfo.Length != file.Length)
|
||||
{
|
||||
file.ExtractToFile($"{ThemeDirectory}\\{name}\\_{name}.mp4", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (file.Name.EndsWith(".xaml", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue