Write the binary representation of the JSON configuration.

This commit is contained in:
László Monda
2016-04-01 03:46:19 +02:00
parent 1697d673f2
commit bf223ddc3e

View File

@@ -11,5 +11,5 @@ let uhkConfig = JSON.parse(fs.readFileSync('uhk-config.json'));
let keyActions = uhkConfig.keymaps[0].layers[0].modules[0].keyActions;
console.log(keyActions);
let keyActionObjects: KeyActions = new KeyActions().fromJsObject(keyActions);
keyActionObjects.toBinary(writer);
fs.writeFileSync('uhk-config.bin', writer.buffer);