From 0c9da40b29e4f09a4aeafc59688dba75c2c37c8e Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sat, 28 Oct 2023 18:42:41 +0200 Subject: [PATCH] mzte-nv: use cfr as java decompiler --- mzte-nv/src/modules/jdtls.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mzte-nv/src/modules/jdtls.zig b/mzte-nv/src/modules/jdtls.zig index 93245ef..d14bf7c 100644 --- a/mzte-nv/src/modules/jdtls.zig +++ b/mzte-nv/src/modules/jdtls.zig @@ -103,15 +103,15 @@ fn lGetBundleInfo(l: *c.lua_State) !c_int { // bundles c.lua_newtable(l); - var has_procyon = false; + var has_cfr = false; var iter = dir.iterate(); var idx: c_int = 1; while (try iter.next()) |f| { if (f.kind != .file or !std.mem.endsWith(u8, f.name, ".jar")) continue; - if (!has_procyon and std.mem.containsAtLeast(u8, f.name, 1, "procyon")) - has_procyon = true; + if (!has_cfr and std.mem.containsAtLeast(u8, f.name, 1, "cfr")) + has_cfr = true; const path = try std.fs.path.joinZ(std.heap.c_allocator, &.{ bundle_path, f.name }); defer std.heap.c_allocator.free(path); @@ -126,8 +126,8 @@ fn lGetBundleInfo(l: *c.lua_State) !c_int { // content_provider c.lua_newtable(l); - if (has_procyon) { - c.lua_pushstring(l, "procyon"); + if (has_cfr) { + c.lua_pushstring(l, "cfr"); c.lua_setfield(l, -2, "preferred"); }