[MAIN]: Change file to be core.wasm instead of test.wasm
This commit is contained in:
parent
e0fe639f0e
commit
caed24d178
1 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,8 @@ fn init_mods() void {
|
||||||
var global_runtime = mods.GlobalRuntime.init(allocator);
|
var global_runtime = mods.GlobalRuntime.init(allocator);
|
||||||
defer global_runtime.deinit();
|
defer global_runtime.deinit();
|
||||||
|
|
||||||
// const file = std.fs.cwd().openFile("assets/mods/core.wasm", .{}) catch @panic("Couldn't open assets/mods/core.wasm");
|
const file = std.fs.cwd().openFile("assets/mods/core.wasm", .{}) catch @panic("Couldn't open assets/mods/core.wasm");
|
||||||
const file = std.fs.cwd().openFile("./test.wasm", .{}) catch @panic("Couldn't open test.wasm");
|
// const file = std.fs.cwd().openFile("./test.wasm", .{}) catch @panic("Couldn't open test.wasm");
|
||||||
const all = file.readToEndAlloc(allocator, 1_000_000) catch @panic("Unable to read the file"); // 1 MB
|
const all = file.readToEndAlloc(allocator, 1_000_000) catch @panic("Unable to read the file"); // 1 MB
|
||||||
defer allocator.free(all);
|
defer allocator.free(all);
|
||||||
var parser = mods.Parser.init(allocator, all) catch @panic("Failed to init parser");
|
var parser = mods.Parser.init(allocator, all) catch @panic("Failed to init parser");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue