var path_memory = new Uint8Array(ONYX_MEMORY.buffer, filename_ptr, filename_len);
var path = new TextDecoder("utf-8").decode(path_memory);
- console.log(path);
fetch(path)
.then(response => response.arrayBuffer())
for ^entry: wasm_module.sections.entries {
printf("Section: {}\nOffset: {}\n", entry.key, entry.value);
}
+
+ wasm_sections := wasm.parse_sections(^wasm_module);
+ for instr: wasm.instruction_iterator(^wasm_module, ^wasm_sections.code_section[1]) {
+ printf("{}\n", instr);
+ }
}
}
}
assert(event.kind == .FileRequest, "Bad event type");
assert(event.file.status == .Success, "Failed to load color file");
+ println("Reloading colorscheme...");
+
color_data := memory.make_slice(u8, event.file.size);
defer if color_data.count > 0 do cfree(color_data.data);
events.get_requested_file_data(event.file.file_id, color_data);