fix(log_file): remove recursion
This commit is contained in:
parent
815ebbdefa
commit
30ba63bb56
@ -31,7 +31,7 @@ void log_file::com_open_log_file()
|
|||||||
file_system::open_file_by_mode(log_file_name, game::native::logfile, game::native::FS_APPEND_SYNC);
|
file_system::open_file_by_mode(log_file_name, game::native::logfile, game::native::FS_APPEND_SYNC);
|
||||||
|
|
||||||
asctime_s(time_buffer, sizeof(time_buffer), &new_time);
|
asctime_s(time_buffer, sizeof(time_buffer), &new_time);
|
||||||
info(std::format("logfile opened on {}\n", time_buffer));
|
std::cout << "logfile opened on " << time_buffer << "\n"; // no recursive call to 'info'
|
||||||
opening_qconsole = 0;
|
opening_qconsole = 0;
|
||||||
com_console_log_open_failed = *game::native::logfile == 0;
|
com_console_log_open_failed = *game::native::logfile == 0;
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
#include <format>
|
#include <format>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
#include <iostream>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
|
Loading…
Reference in New Issue
Block a user