Closed titangamingglt closed 4 years ago
Hi @titangamingglt , to prevent the case you are encountering you could try following (in the success callback of the load game):
func _on_game_load_success(data: String) -> void:
if data:
var game_data: Dictionary = parse_json(data)
print("Do something with the %s"%data)
suppose i dont have any previous file saved and then try to load the file first without saving it first it is just corruption my game file. i have tried to use data!= null but that doesnot work!