From 099241d9cad471bfc31fe2b9cd53dd8f65bd3d2b Mon Sep 17 00:00:00 2001 From: funman300 Date: Thu, 25 Jun 2026 21:52:14 -0700 Subject: [PATCH] fix: correct default hook DLL path The default hook_dll_path was constructed relative to Documents/OpenFUT/ but the launcher repo lives at Documents/openfut-launcher/, causing the Setup tab to always show "DLL not built yet" even after building. Co-Authored-By: Claude Sonnet 4.6 --- src/config.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 4c0c161..be9e540 100644 --- a/src/config.rs +++ b/src/config.rs @@ -47,8 +47,9 @@ impl Default for LauncherConfig { .into(), bridge_core_url: "http://127.0.0.1:8080".into(), bridge_tls_enabled: true, - hook_dll_path: base - .join("openfut-launcher/openfut-hook/target/x86_64-pc-windows-gnu/release/openfut_hook.dll") + hook_dll_path: dirs::home_dir() + .map(|h| h.join("Documents/openfut-launcher/openfut-hook/target/x86_64-pc-windows-gnu/release/openfut_hook.dll")) + .unwrap_or_default() .to_string_lossy() .into(), fifa_game_dir: dirs::home_dir()