From 99f9b9b447ae0e3bab3c26fec6a3efe445b80ed7 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 1 Oct 2020 03:02:13 -0400 Subject: [PATCH] rename GetTempFilename `extension` arg to make it clear that you should provide the dot... --- src/BizHawk.Common/TempFileManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Common/TempFileManager.cs b/src/BizHawk.Common/TempFileManager.cs index 5f0b75fa1c..03245563e4 100644 --- a/src/BizHawk.Common/TempFileManager.cs +++ b/src/BizHawk.Common/TempFileManager.cs @@ -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);