File tree Expand file tree Collapse file tree 2 files changed +20
-17
lines changed Expand file tree Collapse file tree 2 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -59,17 +59,17 @@ pub fn build(b: *std.Build) void {
59
59
// Source: https://github.com/theseyan/bkg/blob/38663d8ed0257f45d37ce003a7e2cafd0f278951/build.zig#L15
60
60
exe .strip = false ;
61
61
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
+ // });
71
71
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" });
73
73
74
74
// exe.addLibraryPath("I:/Programming/Cortex-Command-Mod-Converter-Engine/zig-out/lib/Cortex-Command-Mod-Converter-Engine.lib");
75
75
// exe.linkLibrary(lib: *Compile);
Original file line number Diff line number Diff line change @@ -160,8 +160,11 @@ pub fn main() !void {
160
160
});
161
161
},
162
162
}
163
+
163
164
std .debug .print ("{s}\n " , .{err_msg_slice });
164
165
zgui .openPopup ("error_popup" , .{});
166
+
167
+ // return err;
165
168
}
166
169
}
167
170
if (zgui .beginPopup ("error_popup" , .{})) {
@@ -184,14 +187,14 @@ pub fn main() !void {
184
187
_ = result ;
185
188
}
186
189
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();
191
194
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
+ // }
195
198
}
196
199
zgui .end ();
197
200
You can’t perform that action at this time.
0 commit comments