diff options
Diffstat (limited to 'UVtools.Core/FileFormats/PhotonWorkshopFile.cs')
-rw-r--r-- | UVtools.Core/FileFormats/PhotonWorkshopFile.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/UVtools.Core/FileFormats/PhotonWorkshopFile.cs b/UVtools.Core/FileFormats/PhotonWorkshopFile.cs index f4a7220..4003f8a 100644 --- a/UVtools.Core/FileFormats/PhotonWorkshopFile.cs +++ b/UVtools.Core/FileFormats/PhotonWorkshopFile.cs @@ -1187,7 +1187,7 @@ namespace UVtools.Core.FileFormats public override object[] Configs => new object[] { FileMarkSettings, HeaderSettings, PreviewSettings, LayersDefinition }; public LayerRleFormat LayerFormat => - FileFullPath.EndsWith(".pws") || FileFullPath.EndsWith($".pws{TemporaryFileAppend}") + FileEndsWith(".pws") ? LayerRleFormat.PWS : LayerRleFormat.PW0; @@ -1195,32 +1195,32 @@ namespace UVtools.Core.FileFormats { get { - if (FileFullPath.EndsWith(".pws") || FileFullPath.EndsWith($".pws{TemporaryFileAppend}")) + if (FileEndsWith(".pws")) { return AnyCubicMachine.AnyCubicPhotonS; } - if (FileFullPath.EndsWith(".pw0") || FileFullPath.EndsWith($".pw0{TemporaryFileAppend}")) + if (FileEndsWith(".pw0")) { return AnyCubicMachine.AnyCubicPhotonZero; } - if (FileFullPath.EndsWith(".pwx") || FileFullPath.EndsWith($".pwx{TemporaryFileAppend}")) + if (FileEndsWith(".pwx")) { return AnyCubicMachine.AnyCubicPhotonX; } - if (FileFullPath.EndsWith(".pwmo") || FileFullPath.EndsWith($".pwmo{TemporaryFileAppend}")) + if (FileEndsWith(".pwmo")) { return AnyCubicMachine.AnyCubicPhotonMono; } - if (FileFullPath.EndsWith(".pwms") || FileFullPath.EndsWith($".pwms{TemporaryFileAppend}")) + if (FileEndsWith(".pwms")) { return AnyCubicMachine.AnyCubicPhotonMonoSE; } - if (FileFullPath.EndsWith(".pwmx") || FileFullPath.EndsWith($".pwmx{TemporaryFileAppend}")) + if (FileEndsWith(".pwmx")) { return AnyCubicMachine.AnyCubicPhotonMonoX; } |