Skip to content

Commit dce5c08

Browse files
committed
Comment out zipping for now
1 parent 4c3c6cb commit dce5c08

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

build.zig

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,17 @@ pub fn build(b: *std.Build) void {
5959
// Source: https://github.com/theseyan/bkg/blob/38663d8ed0257f45d37ce003a7e2cafd0f278951/build.zig#L15
6060
exe.strip = false;
6161

62-
exe.linkLibC();
63-
64-
exe.addCSourceFile(.{
65-
.file = .{ .path = "I:/Programming/Cortex-Command-Mod-Converter-Engine/submodules/zip/src/zip.c" },
66-
.flags = &.{
67-
"-O3",
68-
"-fno-sanitize=undefined", // Necessary to prevent "Illegal instruction" error
69-
},
70-
});
62+
// exe.linkLibC();
63+
64+
// exe.addCSourceFile(.{
65+
// .file = .{ .path = "I:/Programming/Cortex-Command-Mod-Converter-Engine/submodules/zip/src/zip.c" },
66+
// .flags = &.{
67+
// "-O3",
68+
// "-fno-sanitize=undefined", // Necessary to prevent "Illegal instruction" error
69+
// },
70+
// });
7171

72-
exe.addIncludePath(.{ .path = "I:/Programming/Cortex-Command-Mod-Converter-Engine/submodules/zip/src" });
72+
// exe.addIncludePath(.{ .path = "I:/Programming/Cortex-Command-Mod-Converter-Engine/submodules/zip/src" });
7373

7474
// exe.addLibraryPath("I:/Programming/Cortex-Command-Mod-Converter-Engine/zig-out/lib/Cortex-Command-Mod-Converter-Engine.lib");
7575
// exe.linkLibrary(lib: *Compile);

src/main.zig

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,11 @@ pub fn main() !void {
160160
});
161161
},
162162
}
163+
163164
std.debug.print("{s}\n", .{err_msg_slice});
164165
zgui.openPopup("error_popup", .{});
166+
167+
// return err;
165168
}
166169
}
167170
if (zgui.beginPopup("error_popup", .{})) {
@@ -184,14 +187,14 @@ pub fn main() !void {
184187
_ = result;
185188
}
186189

187-
if (zgui.button("Zip", .{ .w = 200.0 })) {
188-
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
189-
defer arena.deinit();
190-
var allocator = arena.allocator();
190+
// if (zgui.button("Zip", .{ .w = 200.0 })) {
191+
// var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
192+
// defer arena.deinit();
193+
// var allocator = arena.allocator();
191194

192-
try converter.zipMods(settings.input_folder_path, settings.output_folder_path, allocator);
193-
std.debug.print("Done zipping!\n", .{});
194-
}
195+
// try converter.zipMods(settings.input_folder_path, settings.output_folder_path, allocator);
196+
// std.debug.print("Done zipping!\n", .{});
197+
// }
195198
}
196199
zgui.end();
197200

0 commit comments

Comments
 (0)