From 2af8717aa1308487fcb38529d4a749857af13c12 Mon Sep 17 00:00:00 2001 From: PancakeTAS Date: Thu, 17 Jul 2025 18:24:49 +0200 Subject: [PATCH] properly use dll path --- src/extract/extract.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/extract/extract.cpp b/src/extract/extract.cpp index a8bfff7..ea9b7f8 100644 --- a/src/extract/extract.cpp +++ b/src/extract/extract.cpp @@ -1,4 +1,5 @@ #include "extract/extract.hpp" +#include "config/config.hpp" #include @@ -93,9 +94,9 @@ namespace { std::string getDllPath() { // overriden path - const char* dllPath = getenv("LSFG_DLL_PATH"); - if (dllPath && *dllPath != '\0') - return{dllPath}; + std::string dllPath = Config::activeConf.dll; + if (!dllPath.empty()) + return dllPath; // home based paths const char* home = getenv("HOME"); const std::string homeStr = home ? home : "";