mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-09-21 03:43:46 +12:00
Fix crash when trying to replace .mat video when its currently playing
This commit is contained in:
parent
f0e68fdd61
commit
35b995e6f0
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ namespace ModAssistant
|
||||||
{
|
{
|
||||||
//Check to see if the lengths of each file are different. If they are, overwrite what currently exists.
|
//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");
|
FileInfo existingInfo = new FileInfo($"{ThemeDirectory}\\{name}\\_{name}.mp4");
|
||||||
if (existingInfo.Length != file.Length)
|
if (existingInfo.Length != file.Length && LoadedTheme != name)
|
||||||
{
|
{
|
||||||
file.ExtractToFile($"{ThemeDirectory}\\{name}\\_{name}.mp4", true);
|
file.ExtractToFile($"{ThemeDirectory}\\{name}\\_{name}.mp4", true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue