mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
Remove .exe from log name
This commit is contained in:
parent
abfe66b48a
commit
2dd51d889e
1 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "../util_env.h"
|
||||
|
||||
#include <ctime>
|
||||
#include <regex>
|
||||
|
||||
namespace dxvk {
|
||||
|
||||
|
@ -13,7 +14,8 @@ namespace dxvk {
|
|||
std::string file = path;
|
||||
if (!file.empty() && *file.rbegin() != '/')
|
||||
file += '/';
|
||||
file += env::getExeName() + "_";
|
||||
std::regex ext(".exe$");
|
||||
file += std::regex_replace(env::getExeName(),ext,"") + "_";
|
||||
if (!env::getEnvVar(L"DXVK_LOG_TIMESTAMP").empty()) {
|
||||
std::time_t t = std::time(nullptr);
|
||||
char mbstr[sizeof("2018-01-01_00.00.00")];
|
||||
|
@ -21,7 +23,6 @@ namespace dxvk {
|
|||
file += std::string(mbstr) + "_";
|
||||
}
|
||||
}
|
||||
|
||||
m_fileStream = std::ofstream(file + file_name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue