Fix language support and compatibility with windows.

This commit is contained in:
Dima yawaflua Andreev
2024-11-17 21:39:20 +02:00
parent becea81c9b
commit b1c0d94a22
6 changed files with 51 additions and 30 deletions

14
utils/check_file_exists.h Normal file
View File

@@ -0,0 +1,14 @@
//
// Created by yawaflua on 15/11/2024.
//
#ifndef CHECK_FILE_EXISTS_H
#define CHECK_FILE_EXISTS_H
inline bool file_exists (const std::string& name) {
struct stat buffer;
return (stat (name.c_str(), &buffer) == 0);
}
#endif //CHECK_FILE_EXISTS_H

View File

@@ -6,6 +6,7 @@
#include <fstream>
#include <iostream>
#include <nlohmann/json.hpp> // Подключение библиотеки JSON
#include <fmt/format.h>
namespace tzeva_adom {
class LocalizationManager {