mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-04-27 12:51:52 +00:00
properly use dll path
This commit is contained in:
parent
fdbd4f63d0
commit
de33972087
1 changed files with 4 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
#include "extract/extract.hpp"
|
#include "extract/extract.hpp"
|
||||||
|
#include "config/config.hpp"
|
||||||
|
|
||||||
#include <pe-parse/parse.h>
|
#include <pe-parse/parse.h>
|
||||||
|
|
||||||
|
|
@ -93,9 +94,9 @@ namespace {
|
||||||
|
|
||||||
std::string getDllPath() {
|
std::string getDllPath() {
|
||||||
// overriden path
|
// overriden path
|
||||||
const char* dllPath = getenv("LSFG_DLL_PATH");
|
std::string dllPath = Config::activeConf.dll;
|
||||||
if (dllPath && *dllPath != '\0')
|
if (!dllPath.empty())
|
||||||
return{dllPath};
|
return dllPath;
|
||||||
// home based paths
|
// home based paths
|
||||||
const char* home = getenv("HOME");
|
const char* home = getenv("HOME");
|
||||||
const std::string homeStr = home ? home : "";
|
const std::string homeStr = home ? home : "";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue