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

2
.gitignore vendored
View File

@ -15,3 +15,5 @@ shaders/__BBMOD*
sprites/BBMOD*
*.DS_Store
fonts/_f_sdf/_f_sdf.yy
fonts/_f_sdf_medium/_f_sdf_medium.yy

View File

@ -185,6 +185,8 @@
if(!file_exists(path)) return;
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++) {