Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/FileFormats/PhotonWorkshopFile.cs')
-rw-r--r--UVtools.Core/FileFormats/PhotonWorkshopFile.cs14
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;
}