handle drives(os2)

This commit is contained in:
Asbjørn Pettersen
1999-08-06 11:14:01 +00:00
parent 933b866166
commit fc81fbd409
6 changed files with 45 additions and 5 deletions

View File

@ -80,7 +80,15 @@ datafiles_read_directories (char *path_str,
*/
home = g_get_home_dir ();
local_path = g_strdup (path_str);
#ifdef __EMX__
/*
* Change drive so opendir works.
*/
if (local_path[1] == ':')
{
_chdrive(local_path[0]);
}
#endif
/* Search through all directories in the local path */
next_token = local_path;