empty pref

This commit is contained in:
Tanasart 2023-12-08 08:28:22 +07:00
parent 202eae7175
commit 458c7f3ae8
2 changed files with 6 additions and 2 deletions

4
.gitignore vendored
View file

@ -14,4 +14,6 @@ shaders/__BBMOD*
sprites/BBMOD*
*.DS_Store
*.DS_Store
fonts/_f_sdf/_f_sdf.yy
fonts/_f_sdf_medium/_f_sdf_medium.yy

View file

@ -184,7 +184,9 @@
var path = DIRECTORY + "keys.json";
if(!file_exists(path)) return;
var map = json_load_struct(path);
var map = json_load_struct(path);
if(array_empty(variable_struct_get_names(map))) return;
HOTKEYS_DATA = {};
for(var i = 0; i < array_length(map.key); i++) {