mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 17:23:53 +01:00
BUGFIX: Fix corrupted save in Steam cloud (#1341)
This commit is contained in:
parent
54d099e552
commit
2ee548a140
@ -192,9 +192,9 @@ async function pushSaveDataToSteamCloud(saveData, currentPlayerId) {
|
||||
*
|
||||
* Instead of implementing it, the old code (encoding in base64) is used here for backward compatibility.
|
||||
*/
|
||||
const content = saveData.toString("base64");
|
||||
log.debug(`Uncompressed: ${saveData.length} bytes`);
|
||||
log.debug(`Compressed: ${content.length} bytes`);
|
||||
const content = Buffer.from(saveData).toString("base64");
|
||||
log.debug(`saveData: ${saveData.length} bytes`);
|
||||
log.debug(`Base64 string of saveData: ${content.length} bytes`);
|
||||
log.debug(`Saving to Steam Cloud as ${steamSaveName}`);
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user