1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 05:52:11 +01:00

[util] Remove getTempDirectory

It's not used anywhere.
This commit is contained in:
Jacek Caban 2018-07-18 01:38:08 +02:00 committed by Philip Rebohle
parent 06511aa72c
commit 02ae42c7de
2 changed files with 0 additions and 25 deletions

View File

@ -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) {
using SetThreadDescriptionProc = void (WINAPI *) (HANDLE, PCWSTR);

View File

@ -25,15 +25,6 @@ namespace dxvk::env {
*/
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
* \param [in] name Thread name