mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
properly use dll path
This commit is contained in:
parent
d283a146bc
commit
2af8717aa1
1 changed files with 4 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "extract/extract.hpp"
|
||||
#include "config/config.hpp"
|
||||
|
||||
#include <pe-parse/parse.h>
|
||||
|
||||
|
|
@ -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 : "";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue