windows fixes
This commit is contained in:
1 parent
94a3371509
commit
61275d9e75
9 files changed
+15
-15
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user