1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-08 01:54:15 +01:00
dxvk/src/util/util_env.h
Derek Lesho 66bcc4b3d8 Use std::string for util::getEnvVar input
This allows cleaner code when implementing DXVK as a native library
2018-11-16 06:43:45 +01:00

35 lines
821 B
C++

#pragma once
#include "util_string.h"
namespace dxvk::env {
/**
* \brief Gets environment variable
*
* If the variable is not defined, this will return
* an empty string. Note that environment variables
* may be defined with an empty value.
* \param [in] name Name of the variable
* \returns Value of the variable
*/
std::string getEnvVar(const std::string& name);
/**
* \brief Gets the executable name
*
* Returns the base name (not the full path) of the
* program executable, including the file extension.
* This function should be used to identify programs.
* \returns Executable name
*/
std::string getExeName();
/**
* \brief Sets name of the calling thread
* \param [in] name Thread name
*/
void setThreadName(const wchar_t* name);
}