if (!DataManager.isThisGameFile(save(1))) return;
//$.toaster({ message : "读取成功!"})
// Extract data from savegame
console.log("Extract save contents");
DataManager.createGameObjects();
DataManager.extractSaveContents(JsonEx.parse(StorageManager.load(1)));
//console.log(LZString.decompressFromBase64(data.savedata));
//console.log(JsonEx.parse(LZString.decompressFromBase64(data.savedata)));
// Move player
console.log("Reserve transfer player");
$gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
$gamePlayer.requestMapReload();
// Initialize map
console.log("Goto Scene_Map");
$gameSystem.onAfterLoad();
Scene_Load.prototype.reloadMapIfUpdated.call(null);
SceneManager.goto(Scene_Map);
if (SceneManager._scene) {
SceneManager._scene.fadeOutAll();
}
} else {
DataManager.setupNewGame();
SceneManager.goto(Scene_Map);
}
}