diff --git a/Code/IO/Config.cs b/Code/IO/Config.cs index 696a763..49256a7 100644 --- a/Code/IO/Config.cs +++ b/Code/IO/Config.cs @@ -165,6 +165,8 @@ namespace Flowframes.IO if (key == "modelsBaseUrl") return WriteDefault(key, "https://raw.githubusercontent.com/n00mkrad/flowframes/main/Models/"); if (key == "ffEncPreset") return WriteDefault(key, "medium"); if (key == "ffEncArgs") return WriteDefault(key, ""); + // Misc, not exposed in UI + if (key == "exportFilenameSeparator") return WriteDefault(key, "-"); if (type == Type.Int || type == Type.Float) return WriteDefault(key, "0"); // Write default int/float (0) if (type == Type.Bool) return WriteDefault(key, "False"); // Write default bool (False) diff --git a/Code/IO/IOUtils.cs b/Code/IO/IOUtils.cs index ca7f46a..b1e657f 100644 --- a/Code/IO/IOUtils.cs +++ b/Code/IO/IOUtils.cs @@ -413,9 +413,10 @@ namespace Flowframes.IO public static string GetExportSuffix(float factor, AI ai, string mdl) { - string suffix = $"-{factor.ToStringDot()}x-{ai.aiNameShort.ToUpper()}"; + string sep = Config.Get("exportFilenameSeparator"); + string suffix = $"{sep}{factor.ToStringDot()}x{sep}{ai.aiNameShort.ToUpper()}"; if (Config.GetBool("modelSuffix")) - suffix += $"-{mdl}"; + suffix += $"{sep}{mdl}"; return suffix; } diff --git a/Code/Main/CreateVideo.cs b/Code/Main/CreateVideo.cs index 437047e..8d9bdd6 100644 --- a/Code/Main/CreateVideo.cs +++ b/Code/Main/CreateVideo.cs @@ -57,7 +57,7 @@ namespace Flowframes.Main await Encode(mode, path, outPath, I.current.outFps); if (fpsLimit) - await Encode(mode, path, outPath.FilenameSuffix($"-{maxFps.ToStringDot("0.00")}fps"), I.current.outFps, maxFps); + await Encode(mode, path, outPath.FilenameSuffix($"{Config.Get("exportFilenameSeparator")}{maxFps.ToStringDot("0.00")}fps"), I.current.outFps, maxFps); } catch (Exception e) {