Skip to content

Commit

Permalink
Update USMT.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
krisdb2009 authored Jan 18, 2024
1 parent 7a9155b commit 386aa61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SuperGrate/Classes/USMT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ public static Task<bool> CopyUSMT()
return false;
}
}
if (Directory.Exists(PayloadPathTarget))
{
Logger.Error(Language.Get("Class/USMT/Log/Failed/PayloadPathAlreadyExists"));
return false;
}
if (FileOperations.CopyFolder(
USMTPath,
PayloadPathTarget
Expand Down Expand Up @@ -504,4 +509,4 @@ public enum USMTMode
ScanState = 1,
LoadState = 2
}
}
}

0 comments on commit 386aa61

Please sign in to comment.