Add title load slot selection
This commit is contained in:
@@ -191,10 +191,18 @@ func load_manual_game() -> bool:
|
||||
return false
|
||||
|
||||
|
||||
func get_save_summary() -> Dictionary:
|
||||
return _get_save_summary_from_path(SAVE_PATH)
|
||||
|
||||
|
||||
func get_manual_save_summary() -> Dictionary:
|
||||
if not has_manual_save():
|
||||
return _get_save_summary_from_path(MANUAL_SAVE_PATH)
|
||||
|
||||
|
||||
func _get_save_summary_from_path(path: String) -> Dictionary:
|
||||
if not FileAccess.file_exists(path):
|
||||
return {}
|
||||
var parsed = JSON.parse_string(FileAccess.get_file_as_string(MANUAL_SAVE_PATH))
|
||||
var parsed = JSON.parse_string(FileAccess.get_file_as_string(path))
|
||||
if typeof(parsed) != TYPE_DICTIONARY:
|
||||
return {}
|
||||
var completed_count := 0
|
||||
|
||||
Reference in New Issue
Block a user