mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-07 07:54:15 +01:00
[util] Remove getTempDirectory
It's not used anywhere.
This commit is contained in:
parent
06511aa72c
commit
02ae42c7de
@ -36,22 +36,6 @@ namespace dxvk::env {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
std::string getTempDirectory() {
|
|
||||||
WCHAR windowsTempDir[MAX_PATH] = {0};
|
|
||||||
UINT ret = ::GetTempPathW(MAX_PATH, windowsTempDir);
|
|
||||||
if (ret > MAX_PATH || ret == 0)
|
|
||||||
return std::string();
|
|
||||||
|
|
||||||
auto dxvkTempDir = std::wstring(windowsTempDir) + L"dxvk\\";
|
|
||||||
if (::CreateDirectoryW(dxvkTempDir.c_str(), 0) == 0) {
|
|
||||||
if (::GetLastError() != ERROR_ALREADY_EXISTS)
|
|
||||||
return std::string();
|
|
||||||
}
|
|
||||||
|
|
||||||
return str::fromws(dxvkTempDir);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void setThreadName(const wchar_t* name) {
|
void setThreadName(const wchar_t* name) {
|
||||||
using SetThreadDescriptionProc = void (WINAPI *) (HANDLE, PCWSTR);
|
using SetThreadDescriptionProc = void (WINAPI *) (HANDLE, PCWSTR);
|
||||||
|
|
||||||
|
@ -25,15 +25,6 @@ namespace dxvk::env {
|
|||||||
*/
|
*/
|
||||||
std::string getExeName();
|
std::string getExeName();
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief Gets the path to the dxvk specific temporary directory
|
|
||||||
*
|
|
||||||
* Returns the path to the temporary directory for dxvk.
|
|
||||||
* If no such directory can be found the string will be empty.
|
|
||||||
* \returns Temporary directory
|
|
||||||
*/
|
|
||||||
std::string getTempDirectory();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Sets name of the calling thread
|
* \brief Sets name of the calling thread
|
||||||
* \param [in] name Thread name
|
* \param [in] name Thread name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user