windows fix

This commit is contained in:
xensik 2022-03-18 00:18:42 +01:00
parent 102589b8f3
commit 46d5d812fc

View File

@ -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);
}
}
}