mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 22:10:56 +00:00
Add environment variable override helper function
This allows FORCE_QT_GLES and SEPARATE_TEST_DECODER to override both true and false.
This commit is contained in:
1 parent
21fb2832e1
commit
41ad3c0938
9 files changed
+68
-60
No files matched your search
@@ -14,3 +14,12 @@ namespace WMUtils {
|
||||
bool isRunningDesktopEnvironment();
|
||||
QString getDrmCardOverride();
|
||||
}
|
||||
|
||||
namespace Utils {
|
||||
template <typename T>
|
||||
bool getEnvironmentVariableOverride(const char* name, T* value) {
|
||||
bool ok;
|
||||
*value = (T)qEnvironmentVariableIntValue(name, &ok);
|
||||
return ok;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user