TAStudio: add trailing slash so loading a bk2 multiple times properly puts the file in the movies folder

This commit is contained in:
alyosha-tas 2020-07-03 17:05:07 -04:00
parent 32031d0f67
commit 53b61d9cfa
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ namespace BizHawk.Client.Common
int fileSuffix = 0;
while (File.Exists(newFileName))
{
newFileName = $"{Path.GetDirectoryName(oldFileName)}{Path.GetFileNameWithoutExtension(oldFileName)} {++fileSuffix}.{TasMovie.Extension}";
newFileName = $"{Path.GetDirectoryName(oldFileName)}\\{Path.GetFileNameWithoutExtension(oldFileName)} {++fileSuffix}.{TasMovie.Extension}";
}
return newFileName;