Skip to content

Commit cbdfe58

Browse files
committed
[FIX] : fix for unix
1 parent 857e676 commit cbdfe58

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ImGuiFileDialog.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,12 @@ namespace IGFD
479479
{
480480
#ifdef USE_STD_FILESYSTEM
481481
namespace fs = std::filesystem;
482+
#ifdef WIN32
482483
std::wstring wname = IGFD::Utils::string_to_wstring(name.c_str());
483484
fs::path pathName = fs::path(wname);
485+
#else
486+
fs::path pathName = fs::path(name);
487+
#endif
484488
bExists = fs::is_directory(pathName);
485489
#else
486490
DIR* pDir = nullptr;

0 commit comments

Comments
 (0)