From 33d72f89909079ebc8573d231173f3380fd2edd6 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Wed, 19 Nov 2025 09:06:08 +0100 Subject: [PATCH] - [FIX] Renombrat "aux" a "misc", que a Windows no li mola eixe nom d'arxiu --- source/main.cpp | 6 +++--- source/{aux.cpp => misc.cpp} | 4 ++-- source/{aux.h => misc.h} | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename source/{aux.cpp => misc.cpp} (92%) rename source/{aux.h => misc.h} (86%) diff --git a/source/main.cpp b/source/main.cpp index 191496a..e9173c3 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -9,7 +9,7 @@ #include "fkYAML/node.hpp" #include #include -#include "aux.h" +#include "misc.h" namespace fs = std::filesystem; @@ -39,8 +39,8 @@ void loadRoom(std::string room_file) } } tilemap::set(tiles); - tilemap::setBackground(aux::getColorByName(room["room"]["bgColor"].get_value())); - tilemap::setBorder(aux::getColorByName(room["room"]["border"].get_value())); + tilemap::setBackground(misc::getColorByName(room["room"]["bgColor"].get_value())); + tilemap::setBorder(misc::getColorByName(room["room"]["border"].get_value())); //fkyaml::node name_node = room["room"]["name"]; //printf("%s\n", name_node.get_value().c_str()); } diff --git a/source/aux.cpp b/source/misc.cpp similarity index 92% rename from source/aux.cpp rename to source/misc.cpp index ea48cf5..289e689 100644 --- a/source/aux.cpp +++ b/source/misc.cpp @@ -1,6 +1,6 @@ -#include "aux.h" +#include "misc.h" -namespace aux +namespace misc { std::string colors[17] = { "black", "bright_black", "blue", "bright_blue", "red", "bright_red", "magenta", "bright_magenta", "green", "bright_green", "cyan", "bright_cyan", "yellow", "bright_yellow", "white", "bright_white", "transparent" }; int getColorByName(std::string color) diff --git a/source/aux.h b/source/misc.h similarity index 86% rename from source/aux.h rename to source/misc.h index 34a9559..c8f81c7 100644 --- a/source/aux.h +++ b/source/misc.h @@ -2,7 +2,7 @@ #include #include -namespace aux +namespace misc { int getColorByName(std::string color); }