2017-12-08 11:18:23 +01:00
|
|
|
#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
|
|
|
|
*/
|
2019-01-13 21:27:59 +01:00
|
|
|
std::string getEnvVar(const char* name);
|
2017-12-08 11:18:23 +01:00
|
|
|
|
2018-01-16 11:33:34 +01:00
|
|
|
/**
|
|
|
|
* \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();
|
|
|
|
|
2019-08-17 11:46:40 +02:00
|
|
|
/**
|
|
|
|
* \brief Gets full path to executable
|
|
|
|
* \returns Path to executable
|
|
|
|
*/
|
|
|
|
std::string getExePath();
|
|
|
|
|
2018-06-21 15:12:04 +02:00
|
|
|
/**
|
|
|
|
* \brief Sets name of the calling thread
|
|
|
|
* \param [in] name Thread name
|
|
|
|
*/
|
2019-01-11 13:43:15 +01:00
|
|
|
void setThreadName(const std::string& name);
|
2019-02-11 21:36:23 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Creates a directory
|
|
|
|
*
|
|
|
|
* \param [in] path Path to directory
|
|
|
|
* \returns \c true on success
|
|
|
|
*/
|
|
|
|
bool createDirectory(const std::string& path);
|
2018-03-21 02:45:11 +01:00
|
|
|
|
|
|
|
}
|