Skip to content

Commit cfc5dbf

Browse files
author
Tim Winchester
committed
included zeroed-out savefile
1 parent ac926ff commit cfc5dbf

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

blank/blank.sav

1000 KB
Binary file not shown.

cmd/create-blank-snapshot-cmd.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ const CONFIG = require('../config.json');
55

66
const createBlankSnapshot = (outFile, inFile) => {
77
const outputFilename = `${CONFIG.snapshotspath}${outFile}.sav`;
8-
const inputFilename = `${CONFIG.savepath}game_data.sav`;
8+
const inputFilename = `${CONFIG.blankpath}blank.sav`;
9+
10+
fs.copyFileSync(inputFilename, outputFilename);
911

1012
saveFileUtils.withBinaryFileSync(inputFilename, (binary) => {
1113
while(binary.tell() < CONFIG.saveFileLastOffset) {

config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"savepath": "<Enter the path to your save file here, including the slot subfolder>",
3+
"blankpath": "./blank/",
34
"backuppath": "./backup/",
45
"tempoutputpath": "./temp/",
56
"snapshotspath": "./snapshots/",

0 commit comments

Comments
 (0)