citra-emu
/
citra-web
Archived
1
0
Fork 0

Backend now stores savefiles in ZIP format. We want to change this to csav when it's pushed to the website.

This commit is contained in:
chris062689 2017-06-04 17:11:58 -04:00
parent 4dc74bb27d
commit 5d2fc8cac5
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ try {
// Copy all savefiles into the output folder and store their contents. // Copy all savefiles into the output folder and store their contents.
fs.readdirSync(inputDirectorySavefilesGame).forEach(file => { fs.readdirSync(inputDirectorySavefilesGame).forEach(file => {
if (file.slice(-5) == '.csav') { if (file.slice(-5) == '.zip') {
fsextra.copySync(`${inputDirectorySavefilesGame}/${file}`, `${outputDirectorySavefilesGame}/${file.replace('.zip', '.csav')}`); fsextra.copySync(`${inputDirectorySavefilesGame}/${file}`, `${outputDirectorySavefilesGame}/${file.replace('.zip', '.csav')}`);
} else if (file.slice(-4) == '.dat') { } else if (file.slice(-4) == '.dat') {
// Store the contents of the file in memory for adding it into the markdown later. // Store the contents of the file in memory for adding it into the markdown later.