This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| This will take a .save game file, decode it into its JSON form, | |
| and then save it to game-data.json | |
| */ | |
| const fs = require('fs'); | |
| const LZString = require('lz-string'); | |
| if (process.argv.length === 3) { | |
| try { | |
| const encodedData = fs.readFileSync(process.argv[2], 'utf8'); |