afegit el namespace Logger
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "difficulty.hpp" // Para Code, init
|
||||
#include "input.hpp" // Para InputDevice
|
||||
#include "lang.hpp" // Para Code
|
||||
#include "ui/logger.hpp" // Para Logger
|
||||
#include "utils.hpp" // Para boolToString, stringToBool, getFileName
|
||||
|
||||
namespace Options {
|
||||
@@ -64,7 +65,8 @@ auto loadFromFile() -> bool {
|
||||
// 2. Si el fichero existe, lo leemos para obtener los nombres de los mandos.
|
||||
if (file_exists) {
|
||||
// --- CASO: EL FICHERO EXISTE ---
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "\nReading file: %s", getFileName(settings.config_file).c_str());
|
||||
// SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "\nReading file: %s", getFileName(settings.config_file).c_str());
|
||||
Logger::info("Reading file: " + getFileName(settings.config_file));
|
||||
std::string line;
|
||||
std::string param_name;
|
||||
std::string param_value;
|
||||
@@ -114,7 +116,8 @@ auto saveToFile() -> bool {
|
||||
return false;
|
||||
}
|
||||
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Writing file: %s", getFileName(settings.config_file).c_str());
|
||||
//SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Writing file: %s", getFileName(settings.config_file).c_str());
|
||||
Logger::info("Writing file: " + getFileName(settings.config_file));
|
||||
|
||||
applyPendingChanges();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user