diff options
Diffstat (limited to 'drivers/windows/dir_access_windows.cpp')
-rw-r--r-- | drivers/windows/dir_access_windows.cpp | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/drivers/windows/dir_access_windows.cpp b/drivers/windows/dir_access_windows.cpp index 88eb89656a..26b8881c39 100644 --- a/drivers/windows/dir_access_windows.cpp +++ b/drivers/windows/dir_access_windows.cpp @@ -40,23 +40,10 @@ #define WIN32_LEAN_AND_MEAN #include <windows.h> -/* - -[03:57] <reduz> yessopie, so i don't havemak to rely on unicows -[03:58] <yessopie> reduz- yeah, all of the functions fail, and then you can call GetLastError () which will return 120 -[03:58] <drumstick> CategoryApl, hehe, what? :) -[03:59] <CategoryApl> didn't Verona lead to some trouble -[03:59] <yessopie> 120 = ERROR_CALL_NOT_IMPLEMENTED -[03:59] <yessopie> (you can use that constant if you include winerr.h) -[03:59] <CategoryApl> well answer with winning a compo - -[04:02] <yessopie> if ( SetCurrentDirectoryW ( L"." ) == FALSE && GetLastError () == ERROR_CALL_NOT_IMPLEMENTED ) { use ANSI } -*/ - struct DirAccessWindowsPrivate { - HANDLE h; //handle for findfirstfile + HANDLE h; // handle for FindFirstFile. WIN32_FIND_DATA f; - WIN32_FIND_DATAW fu; //unicode version + WIN32_FIND_DATAW fu; // Unicode version. }; String DirAccessWindows::fix_path(String p_path) const { @@ -358,12 +345,6 @@ DirAccessWindows::DirAccessWindows() { p->h = INVALID_HANDLE_VALUE; current_dir = "."; -#ifdef UWP_ENABLED - Windows::Storage::StorageFolder ^ install_folder = Windows::ApplicationModel::Package::Current->InstalledLocation; - change_dir(install_folder->Path->Data()); - -#else - DWORD mask = GetLogicalDrives(); for (int i = 0; i < MAX_DRIVES; i++) { @@ -375,7 +356,6 @@ DirAccessWindows::DirAccessWindows() { } change_dir("."); -#endif } DirAccessWindows::~DirAccessWindows() { @@ -384,4 +364,4 @@ DirAccessWindows::~DirAccessWindows() { memdelete(p); } -#endif //windows DirAccess support +#endif // WINDOWS_ENABLED |