mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 17:39:46 +00:00
fix cyrillic in file path (Windows)
This commit is contained in:
parent
ee41e058a9
commit
f8101011a0
7 changed files with 61 additions and 17 deletions
|
|
@ -68,8 +68,8 @@ static void write(
|
|||
}
|
||||
}
|
||||
|
||||
void Logger::init(const std::string& filename) {
|
||||
file.open(filename);
|
||||
void Logger::init(const std::filesystem::path& path) {
|
||||
file.open(path);
|
||||
|
||||
time_t tm = std::time(nullptr);
|
||||
std::stringstream ss;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <sstream>
|
||||
#include <filesystem>
|
||||
|
||||
namespace debug {
|
||||
enum class LogLevel { print, debug, info, warning, error };
|
||||
|
|
@ -27,7 +28,7 @@ namespace debug {
|
|||
class Logger {
|
||||
std::string name;
|
||||
public:
|
||||
static void init(const std::string& filename);
|
||||
static void init(const std::filesystem::path& path);
|
||||
static void flush();
|
||||
|
||||
Logger(const std::string& name) : name(name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue