Fix some Windows issues
This commit is contained in:
@@ -56,8 +56,7 @@ namespace OpenVulkano
|
||||
[[nodiscard]] std::filesystem::path GetXDGFolderDefault(const char* envName, std::string_view defaultRelativePath)
|
||||
{
|
||||
#ifndef TARGET_OS_IOS != 1
|
||||
const char* envValue = std::getenv(envName);
|
||||
if (envValue)
|
||||
if (const char* envValue = std::getenv(envName))
|
||||
{
|
||||
if (envValue[0] == '/') return envValue;
|
||||
std::cerr << "Ignoring environment '" << envName << "' (value: '" << envValue << "') because it's relative! XDG specifies it should be absolute path. Falling back to default path.";
|
||||
|
||||
Reference in New Issue
Block a user