mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-25 09:54:15 +08:00
crashprinter fix
This commit is contained in:
parent
1fde9f21f1
commit
b6e37d8207
@ -109,6 +109,7 @@ static void log_exception(LPEXCEPTION_POINTERS ex_pointers)
|
||||
auto now = std::chrono::system_clock::now();
|
||||
auto t_now = std::chrono::system_clock::to_time_t(now);
|
||||
auto gm_time = std::gmtime(&t_now);
|
||||
auto asc_time = std::asctime(gm_time);
|
||||
auto time = std::string(asc_time ? asc_time : "");
|
||||
time.pop_back(); // remove the trailing '\n' added by asctime
|
||||
common_helpers::write(file, "[" + time + "]");
|
||||
|
Loading…
x
Reference in New Issue
Block a user