mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
parent
27eeea3d0c
commit
48c773574a
1 changed files with 16 additions and 1 deletions
|
|
@ -25,7 +25,22 @@ void LSFG::initialize() {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
char* dllPath = getenv("LSFG_DLL_PATH");
|
char* dllPath = getenv("LSFG_DLL_PATH");
|
||||||
const std::string dllPathStr = dllPath ? std::string(dllPath) : "Lossless.dll";
|
std::string dllPathStr;
|
||||||
|
if (dllPath && *dllPath != '\0') {
|
||||||
|
dllPathStr = std::string(dllPath);
|
||||||
|
} else {
|
||||||
|
std::string baseDirStr;
|
||||||
|
|
||||||
|
const char* baseDir = getenv("XDG_DATA_HOME");
|
||||||
|
if (!baseDir || *baseDir == '\0')
|
||||||
|
baseDir = getenv("HOME");
|
||||||
|
if (!baseDir || *baseDir == '\0')
|
||||||
|
baseDir = "";
|
||||||
|
baseDirStr = std::string(baseDir);
|
||||||
|
|
||||||
|
dllPathStr = baseDirStr +
|
||||||
|
"/.local/share/Steam/steamapps/common/Lossless Scaling/Lossless.dll";
|
||||||
|
}
|
||||||
|
|
||||||
instance.emplace();
|
instance.emplace();
|
||||||
device.emplace(*instance);
|
device.emplace(*instance);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue