azy, 7h du matin, je sais pas écrire

This commit is contained in:
2026-02-04 07:26:00 +01:00
parent 25fb5285f7
commit 6c1400e62c

View File

@@ -306,7 +306,7 @@ extern "C"
} }
std::filesystem::path file(filepath); std::filesystem::path file(filepath);
if (std::strcmp(filepath, "default") != 0 && filepath !std::filesystem::exists(file)) if (std::strcmp(filepath, "default") != 0 && !std::filesystem::exists(file))
{ {
mlx::Error("TTF loader: unable to find file '%'", filepath); mlx::Error("TTF loader: unable to find file '%'", filepath);
return; return;
@@ -333,7 +333,7 @@ extern "C"
} }
std::filesystem::path file(filepath); std::filesystem::path file(filepath);
if (std::strcmp(filepath, "default") != 0 && filepath !std::filesystem::exists(file)) if (std::strcmp(filepath, "default") != 0 && !std::filesystem::exists(file))
{ {
mlx::Error("TTF loader: unable to find file '%'", filepath); mlx::Error("TTF loader: unable to find file '%'", filepath);
return; return;