Fix in-game options menu

This commit is contained in:
OleSTEEP 2024-01-09 01:24:45 +03:00
parent 0d335b1786
commit bc89b1f1ff
2 changed files with 9 additions and 13 deletions

View file

@ -9,7 +9,7 @@ function localStorageImplementation() {
return {
readSaveFileUTF8(path) {
console.log(`Failed to get externalStorage. Using localStorage to read save at ${path}`);
return atob(localStorage.getItem(path));
return localStorage.getItem(path);
},
saveFileExists(path) {
@ -19,7 +19,7 @@ function localStorageImplementation() {
writeSaveFileUTF8(path, data) {
console.log(`Failed to get externalStorage. Writing ${path} save file to the localStorage`);
localStorage.setItem(path, btoa(data));
localStorage.setItem(path, data);
}
};
}