From 46d5d812fc14cbe23a09ef28467be68235843a00 Mon Sep 17 00:00:00 2001 From: xensik Date: Fri, 18 Mar 2022 00:18:42 +0100 Subject: [PATCH] windows fix --- src/tool/xsk/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tool/xsk/main.cpp b/src/tool/xsk/main.cpp index 4ee85e0b..e66de76c 100644 --- a/src/tool/xsk/main.cpp +++ b/src/tool/xsk/main.cpp @@ -547,10 +547,12 @@ void execute(mode mode, game game, const std::string& path) { if (entry.is_regular_file()) { + auto gen_path = std::filesystem::path(utils::string::fordslash(entry.path().string()), std::filesystem::path::format::generic_format); + if (game < game::T6) - gsc::funcs[mode](game, entry.path().string()); + gsc::funcs[mode](game, gen_path.string()); else - arc::funcs[mode](game, std::filesystem::path(entry.path(), std::filesystem::path::format::generic_format)); + arc::funcs[mode](game, gen_path); } } }