Write the binary representation of the JSON configuration.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user