diff --git a/.gitignore b/.gitignore index 0e99af1..ca3a808 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ lagueirto .vscode/* -lagueirto.exe +*.exe +*.zip \ No newline at end of file diff --git a/main.cpp b/main.cpp index 00556d4..ac9d209 100644 --- a/main.cpp +++ b/main.cpp @@ -23,9 +23,9 @@ std::vector source_paths; std::string build_path = ""; std::string compiler = "g++"; #ifdef _WIN32 -std::string folder_char = "\\"; +char folder_char = '\\'; #else -std::string folder_char = "/"; +char folder_char = '/'; #endif std::string loaded_section = ""; @@ -324,7 +324,7 @@ std::string generate_object_file_name(std::string filename) { std::filesystem::path cwd = std::filesystem::weakly_canonical(std::filesystem::current_path()); std::filesystem::path target = std::filesystem::weakly_canonical(filename); std::string out = std::filesystem::relative(target, cwd).replace_extension("o").generic_string(); - for (char& c : out) if (c == folder_char[0]) c = '.'; + for (char& c : out) if (c == '/') c = '.'; return build_path + folder_char + out; } diff --git a/version.h b/version.h index 9856c92..ff2d8a9 100644 --- a/version.h +++ b/version.h @@ -1,3 +1,3 @@ #pragma once -#define LAGUEIRTO_VERSION "2.1.2" +#define LAGUEIRTO_VERSION "2.1.3"