Profile creating/loading in menu adjustments

This commit is contained in:
gotfishmakesticks 2023-11-13 08:57:14 +03:00
commit ff19560f0b
4 changed files with 36 additions and 4 deletions

View file

@ -69,6 +69,8 @@ static func profile_delete(profile_name : String) -> void:
static func profile_legit_check(profile_meta : Dictionary) -> Dictionary:
var old_hash = []
var new_hash = []
if profile_meta == {}:
return {}
for key in profile_meta['meta']:
old_hash.append(profile_meta['hash'][key])
new_hash.append((str(profile_meta['meta'][key]) + salt).sha256_buffer().hex_encode())