From bb67f0160926d2dc8d5f66fc19ed020331cc9c30 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sun, 4 Jun 2017 17:23:33 -0400 Subject: [PATCH] Changed csav to zip. --- scripts/games/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/games/app.js b/scripts/games/app.js index 409ccf9..a28506d 100644 --- a/scripts/games/app.js +++ b/scripts/games/app.js @@ -106,10 +106,10 @@ try { // Copy all savefiles into the output folder and store their contents. fs.readdirSync(inputDirectorySavefilesGame).forEach(file => { if (path.extname(file) == '.zip') { - fsextra.copySync(`${inputDirectorySavefilesGame}/${file}`, `${outputDirectorySavefilesGame}/${file.replace('.zip', '.csav')}`); + fsextra.copySync(`${inputDirectorySavefilesGame}/${file}`, `${outputDirectorySavefilesGame}/${file.replace('.zip', '.zip')}`); } else if (path.extname(file) == '.dat') { // Store the contents of the file in memory for adding it into the markdown later. - savefileMetadataContents.push({ filename: file.replace('.dat', '.csav'), contents: fs.readFileSync(`${inputDirectorySavefilesGame}/${file}`, 'utf8') }); + savefileMetadataContents.push({ filename: file.replace('.dat', '.zip'), contents: fs.readFileSync(`${inputDirectorySavefilesGame}/${file}`, 'utf8') }); } }); }