summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-12 17:06:20 +0000
committerManolo Gouy <Manolo>2016-04-12 17:06:20 +0000
commit4ebdf97b70716df3ce467c474bd18cab0c60adb5 (patch)
treef8b1ee87e89e01406ae7edf635570c92fc713e11 /src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
parentfce1483eb82be85c1b95abfd1d9a486556bce0e3 (diff)
Begin to rewrite Fl_File_Chooser2.cxx for the driver model.
The parts with case-insensitive filename comparisons for WIN32 and for WIN32 but not CYGWIN still have to be rewritten. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
index fcac9cb6b..ef6070e84 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
@@ -898,6 +898,13 @@ int Fl_WinAPI_System_Driver::file_type(const char *filename)
return filetype;
}
+const char *Fl_WinAPI_System_Driver::home_directory_name()
+{
+ const char *h = getenv("HOME");
+ if (!h) h = getenv("UserProfile");
+ return h;
+}
+
//
// End of "$Id$".
//