Skip to content
Snippets Groups Projects
Commit f1bac4e4 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add missing xtrn.ini "hotkey" section read/writing

Also arrange section writing order to match scfglib2.c
parent b4554199
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -58,6 +58,7 @@ function read_xtrn_ini(filename)
obj.sec = read_sections(f, "sec:");
obj.prog = read_sections(f, "prog:");
obj.native = read_sections(f, "native:");
obj.hotkey = read_sections(f, "hotkey:");
for(var i in obj.prog) {
var item = obj.prog[i];
......@@ -99,11 +100,12 @@ function write_xtrn_ini(filename, obj)
throw new Error("Invalid section number: " + item.sec);
item.code = obj.sec[item.sec].code + ":" + item.code;
}
write_sections(f, obj.event, "event:");
write_sections(f, obj.editor, "editor:");
write_sections(f, obj.sec, "sec:");
write_sections(f, obj.prog, "prog:");
write_sections(f, obj.event, "event:");
write_sections(f, obj.native, "native:");
write_sections(f, obj.hotkey, "hotkey:");
f.close();
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment