Use a forward slash instead. the file name will display incorrect (as Movie/name) when first loaded, but at least it's in the right place.

This commit is contained in:
alyosha-tas 2020-07-03 17:40:52 -04:00
parent 53b61d9cfa
commit 35fdec2132
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ namespace BizHawk.Client.Common
int fileSuffix = 0; int fileSuffix = 0;
while (File.Exists(newFileName)) 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; return newFileName;