From 5d2fc8cac5f1ba9a331951aa20ab0b72feed46fb Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sun, 4 Jun 2017 17:11:58 -0400 Subject: [PATCH] Backend now stores savefiles in ZIP format. We want to change this to csav when it's pushed to the website. --- scripts/games/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/games/app.js b/scripts/games/app.js index bc097a8..9d77ff7 100644 --- a/scripts/games/app.js +++ b/scripts/games/app.js @@ -105,7 +105,7 @@ try { // Copy all savefiles into the output folder and store their contents. fs.readdirSync(inputDirectorySavefilesGame).forEach(file => { - if (file.slice(-5) == '.csav') { + if (file.slice(-5) == '.zip') { fsextra.copySync(`${inputDirectorySavefilesGame}/${file}`, `${outputDirectorySavefilesGame}/${file.replace('.zip', '.csav')}`); } else if (file.slice(-4) == '.dat') { // Store the contents of the file in memory for adding it into the markdown later.