diff --git a/DLL_README.md b/DLL_README.md index 93c056d..0cf702e 100644 --- a/DLL_README.md +++ b/DLL_README.md @@ -73,7 +73,7 @@ Controlled via the `screenshotQuality` CVar (saved to config.wtf): - `/script SetCVar("screenshotQuality", "6")` -- set compression level (1 = fast, 9 = smallest, default 6) - `/script SetCVar("screenshotQuality", "0")` -- disable PNG, use original TGA format -**DLL:** `screenshot.dll` +**DLL:** `pngscreenshot.dll` --- @@ -111,13 +111,14 @@ No configuration needed, install and forget. Adds custom minimap icons for NPC types (vendors, trainers, innkeepers, etc.) and game objects (mailboxes). Replaces the native tracking dropdown with a combined menu showing both spell tracking and NPC category tracking. +Can be disabled easily from normal AddOn menu. - Click the minimap tracking icon to open the dropdown - Check/uncheck NPC categories to toggle their minimap icons - Spell tracking (Hunter tracking, Find Herbs, etc.) remains available alongside NPC tracking -Supports many NPC types such as Auctioneer, Banker, Flightmaster, Repair, Reagents, Poisons, and more -Supported game objects: Mailbox, Brainwasher +Supports many NPC types such as Auctioneer, Banker, Flightmaster, Repair, Reagents, Poisons, and more +Supported game objects: Mailbox, Brainwasher **DLL:** `minimapicons.dll` @@ -198,7 +199,7 @@ WeirdUtils exports three functions for querying and disabling modules at runtime Module names are case-insensitive and match the build option names: -`customassets`, `framecrash`, `logsessions`, `transmogfix`, `minimapicons`, `healtextfix`, `bigcursor`, `worldmarkers`, `interact`, `outline`, `screenshot` +`customassets`, `framecrash`, `logsessions`, `transmogfix`, `minimapicons`, `healtextfix`, `bigcursor`, `worldmarkers`, `interact`, `outline`, `pngscreenshot` There is no re-enable API - re-hooking after unhook is unsafe. diff --git a/build.zig b/build.zig index 5412be1..061befa 100644 --- a/build.zig +++ b/build.zig @@ -13,7 +13,7 @@ const ModuleDesc = struct { /// Single source of truth for all modules. Adding a module here is enough /// to wire up the build option, build_options passthrough, and DLL variant. const module_list = [_]ModuleDesc{ - .{ .name = "screenshot", .desc = "Enable screenshot module" }, + .{ .name = "pngscreenshot", .desc = "Enable screenshot module", .src_dir = "screenshot" }, .{ .name = "interact", .desc = "Enable interact module", .addon_name = "Interact" }, .{ .name = "outline", .desc = "Enable outline module", .default = false, .addon_name = "Outline" }, .{ .name = "worldmarkers", .desc = "Enable world markers module", .src_dir = "markers", .addon_name = "WorldMarkers" }, diff --git a/include/weirdutils_api.h b/include/weirdutils_api.h index a56a44c..4c6a074 100644 --- a/include/weirdutils_api.h +++ b/include/weirdutils_api.h @@ -34,7 +34,7 @@ static const char *const WeirdUtils__DllNames[] = { "worldmarkers.dll", "outline.dll", "interact.dll", - "screenshot.dll", + "pngscreenshot.dll", "framecrash.dll", "transmogfix.dll", "customassets.dll", diff --git a/src/main.zig b/src/main.zig index d61cced..a5be73f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4,7 +4,7 @@ pub const con = @import("console.zig"); // Build options for conditional module compilation const build_opts = struct { - const screenshot = @import("build_options").enable_screenshot; + const screenshot = @import("build_options").enable_pngscreenshot; const interact = @import("build_options").enable_interact; const outline = @import("build_options").enable_outline; const worldmarkers = @import("build_options").enable_worldmarkers; diff --git a/src/screenshot/screenshot.zig b/src/screenshot/screenshot.zig index c2d9f96..469bbb7 100644 --- a/src/screenshot/screenshot.zig +++ b/src/screenshot/screenshot.zig @@ -98,7 +98,7 @@ var mutex: std.atomic.Mutex = .unlocked; var worker_running: bool = false; const mod_mutex = @import("../mutex.zig"); -pub const module_name: [*:0]const u8 = "screenshot"; +pub const module_name: [*:0]const u8 = "pngscreenshot"; var g_mutex: ?HANDLE = null; var g_is_hook_owner: bool = false;