feat: re-enable something
This commit is contained in:
@@ -81,6 +81,8 @@ pub fn build(b: *std.Build) void {
|
||||
exe_mod.addImport("zgui", zgui.module("root"));
|
||||
exe_mod.addImport("bitjuggle", b.dependency("bitjuggle", .{}).module("bitjuggle"));
|
||||
|
||||
exe_mod.addAnonymousImport("example.toml", .{ .root_source_file = b.path("example.toml") });
|
||||
|
||||
// This declares intent for the executable to be installed into the
|
||||
// install prefix when running `zig build` (i.e. when executing the default
|
||||
// step). By default the install prefix is `zig-out/` but can be overridden
|
||||
|
||||
@@ -61,4 +61,5 @@ pub fn load(allocator: Allocator, file_path: []const u8) !void {
|
||||
|
||||
// FIXME(2025-09-22): re-enable
|
||||
// state = try tomlz.parser.decode(Config, allocator, contents);
|
||||
state = .{};
|
||||
}
|
||||
|
||||
@@ -197,9 +197,7 @@ fn configFilePath(allocator: Allocator, config_path: []const u8) ![]const u8 {
|
||||
const config_file = std.fs.createFileAbsolute(path, .{}) catch |err| exitln("failed to create \"{s}\": {}", .{ path, err });
|
||||
defer config_file.close();
|
||||
|
||||
// FIXME(2025-09-22): re-enable
|
||||
// try config_file.writeAll(@embedFile("example.toml"));
|
||||
try config_file.writeAll("");
|
||||
try config_file.writeAll(@embedFile("example.toml"));
|
||||
};
|
||||
|
||||
return path;
|
||||
|
||||
Reference in New Issue
Block a user