- [FIX] Renombrat "aux" a "misc", que a Windows no li mola eixe nom d'arxiu

This commit is contained in:
2025-11-19 09:06:08 +01:00
parent a0a7a78061
commit 33d72f8990
3 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@
#include "fkYAML/node.hpp" #include "fkYAML/node.hpp"
#include <filesystem> #include <filesystem>
#include <iostream> #include <iostream>
#include "aux.h" #include "misc.h"
namespace fs = std::filesystem; namespace fs = std::filesystem;
@@ -39,8 +39,8 @@ void loadRoom(std::string room_file)
} }
} }
tilemap::set(tiles); tilemap::set(tiles);
tilemap::setBackground(aux::getColorByName(room["room"]["bgColor"].get_value<std::string>())); tilemap::setBackground(misc::getColorByName(room["room"]["bgColor"].get_value<std::string>()));
tilemap::setBorder(aux::getColorByName(room["room"]["border"].get_value<std::string>())); tilemap::setBorder(misc::getColorByName(room["room"]["border"].get_value<std::string>()));
//fkyaml::node name_node = room["room"]["name"]; //fkyaml::node name_node = room["room"]["name"];
//printf("%s\n", name_node.get_value<std::string>().c_str()); //printf("%s\n", name_node.get_value<std::string>().c_str());
} }

View File

@@ -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" }; 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) int getColorByName(std::string color)

View File

@@ -2,7 +2,7 @@
#include <string> #include <string>
#include <stdint.h> #include <stdint.h>
namespace aux namespace misc
{ {
int getColorByName(std::string color); int getColorByName(std::string color);
} }