Use .tmp before the file extension (#529)

When creating temporary files use the pattern `.tmp.ext` instead of
`.ext.tmp` to be consistent with Factorio which creates `.tmp.zip` files
during saving.

If patching fails this will leave a `.tmp.zip` file in the instance saves
directory which is ignored by the default save selector.

Resolves #486.
This commit is contained in:
Hornwitser authored and GitHub committed 2023-11-30 01:21:06 +01:00
1 parent faadf873fb
commit d5bcd34cdb
6 files changed
+28 -12

No files matched your search

+1 -1
View File
@@ -449,7 +449,7 @@ export default class Controller {
continue;
}
if (entry.name.toLowerCase().endsWith("tmp.zip")) {
if (entry.name.toLowerCase().endsWith(".tmp.zip")) {
continue;
}