mirror of https://github.com/AxioDL/metaforce.git
Relocate Win32 volume path hack
This commit is contained in:
parent
a4a531a558
commit
5306e48481
|
@ -112,13 +112,6 @@ void FileBrowser::SyncBookmarkSelections(Table& table, BookmarkDataBind& binding
|
|||
void FileBrowser::navigateToPath(const HECL::SystemString& path)
|
||||
{
|
||||
HECL::Sstat theStat;
|
||||
#if _WIN32
|
||||
if (path.size() == 2 && path[1] == L':')
|
||||
{
|
||||
if (HECL::Stat((path + L'/').c_str(), &theStat))
|
||||
return;
|
||||
} else
|
||||
#endif
|
||||
if (HECL::Stat(path.c_str(), &theStat))
|
||||
return;
|
||||
|
||||
|
@ -199,14 +192,7 @@ void FileBrowser::okActivated(bool viaButton)
|
|||
}
|
||||
|
||||
HECL::Sstat theStat;
|
||||
#if _WIN32
|
||||
HECL::SystemString fixPath = path;
|
||||
if (path.size() == 2 && path[1] == L':')
|
||||
fixPath += L'/';
|
||||
if (HECL::Stat(fixPath.c_str(), &theStat) || !S_ISDIR(theStat.st_mode))
|
||||
#else
|
||||
if (HECL::Stat(path.c_str(), &theStat) || !S_ISDIR(theStat.st_mode))
|
||||
#endif
|
||||
{
|
||||
HECL::SystemUTF8View utf8(path);
|
||||
m_fileField.m_view->setErrorState(
|
||||
|
|
Loading…
Reference in New Issue