Changed csav to zip.
This commit is contained in:
parent
9563833fdf
commit
bb67f01609
|
@ -106,10 +106,10 @@ 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 (path.extname(file) == '.zip') {
|
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') {
|
} else if (path.extname(file) == '.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.
|
||||||
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') });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue