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 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user