From 6d5256e0ecdad416f03798243806a573b9e2fb77 Mon Sep 17 00:00:00 2001 From: light7734 Date: Sun, 4 Jan 2026 18:34:12 +0330 Subject: [PATCH] fix: asset baker not taking generic path on Windows Technically this will cause failure on non utf-8 text, but freak it for now... --- modules/asset_baker/entrypoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/asset_baker/entrypoint.cpp b/modules/asset_baker/entrypoint.cpp index 7d40afc..19c68a8 100644 --- a/modules/asset_baker/entrypoint.cpp +++ b/modules/asset_baker/entrypoint.cpp @@ -3,7 +3,6 @@ import logger; import bakers; import std; - auto main(int argc, char *argv[]) -> std::int32_t try { @@ -21,7 +20,8 @@ try } const auto &in_path = directory_iterator.path(); - const auto out_path = std::format("{}.asset", in_path.c_str()); + const std::string in_path_str = in_path.generic_string(); + const auto out_path = std::format("{}.asset", in_path_str); if (in_path.extension() == ".vert") {