From 92b5f56fd18605e2d00475a391a3cda8acddba44 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 9 Feb 2019 11:05:14 -0500 Subject: [PATCH] Don't write flat skin dir --- experiments/automatedScreenshots/index.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/experiments/automatedScreenshots/index.js b/experiments/automatedScreenshots/index.js index 7d2df12b..8eaeb4c2 100644 --- a/experiments/automatedScreenshots/index.js +++ b/experiments/automatedScreenshots/index.js @@ -20,17 +20,7 @@ const Shooter = require("./shooter"); for (const skin of files) { console.log("Trying", skin); const skinMd5 = md5File.sync(skin); - const fileName = `${path.basename(skin).replace(/\//g, "-")}-${skinMd5}`; const screenshotPath = `screenshots/${skinMd5}.png`; - const flatSkinFile = `flatSkins/${fileName}.wsz`; - if (!fs.existsSync(flatSkinFile)) { - fs.linkSync(skin, flatSkinFile); - } - const md5SkinFile = `md5Skins/${skinMd5}.wsz`; - if (!fs.existsSync(md5SkinFile)) { - console.log("Linked skin from", skin, "to", md5SkinFile); - fs.linkSync(skin, md5SkinFile); - } if (fs.existsSync(screenshotPath)) { console.log(screenshotPath, "exists already"); continue;