From 2edb2750405fe052fa4234f74a9a65f83a218a29 Mon Sep 17 00:00:00 2001 From: JailDoctor Date: Sat, 30 May 2026 14:05:49 +0200 Subject: [PATCH] =?UTF-8?q?-=20[FIX]=20En=20Windows=20no=20se=20reempla?= =?UTF-8?q?=C3=A7aven=20correctament=20les=20barres?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- main.cpp | 6 +++--- version.h | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) 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"