rename GetTempFilename `extension` arg to make it clear that you should provide the dot...

This commit is contained in:
zeromus 2020-10-01 03:02:13 -04:00
parent 3fd7e11f60
commit 99f9b9b447
1 changed files with 2 additions and 2 deletions

View File

@ -17,10 +17,10 @@ namespace BizHawk.Common
{
// TODO - manage paths other than %temp%, make not static, or allow adding multiple paths to static instance
public static string GetTempFilename(string friendlyName, string extension = null, bool delete = true)
public static string GetTempFilename(string friendlyName, string dotAndExtension = null, bool delete = true)
{
string guidPart = Guid.NewGuid().ToString();
var fname = $"biz-{System.Diagnostics.Process.GetCurrentProcess().Id}-{friendlyName}-{guidPart}{extension ?? ""}";
var fname = $"biz-{System.Diagnostics.Process.GetCurrentProcess().Id}-{friendlyName}-{guidPart}{dotAndExtension ?? ""}";
if (delete)
{
fname = RenameTempFilenameForDelete(fname);