windows fixes

This commit is contained in:
2025-12-12 23:17:06 -08:00
parent 94a3371509
commit 61275d9e75
9 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ namespace anm2ed
void Dialog::file_explorer_open(const std::filesystem::path& path)
{
#ifdef _WIN32
ShellExecuteA(NULL, "open", path.c_str(), NULL, NULL, SW_SHOWNORMAL);
ShellExecuteA(NULL, "open", path.string().c_str(), NULL, NULL, SW_SHOWNORMAL);
#elif __unix__
system(std::format("xdg-open \"{}\" &", path.c_str()).c_str());
#else