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:
parent
53e317ea3e
commit
4dc74bb27d
|
@ -106,7 +106,7 @@ try {
|
|||
// Copy all savefiles into the output folder and store their contents.
|
||||
fs.readdirSync(inputDirectorySavefilesGame).forEach(file => {
|
||||
if (file.slice(-5) == '.csav') {
|
||||
fsextra.copySync(`${inputDirectorySavefilesGame}/${file}`, `${outputDirectorySavefilesGame}/${file}`);
|
||||
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.
|
||||
savefileMetadataContents.push({ filename: file.replace('.dat', '.csav'), contents: fs.readFileSync(`${inputDirectorySavefilesGame}/${file}`, 'utf8') });
|
||||
|
|
Reference in New Issue