Eolite: fix /kolibrios/ drive appearance

git-svn-id: svn://kolibrios.org@5734 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2015-08-17 13:45:24 +00:00
parent 2732d2f84a
commit cb7d6f9f48

View File

@ -78,6 +78,8 @@ void GetSystemDiscs()
{
char dev_name[10], sys_discs[10];
int i1, j1, dev_num, dev_disc_num,l;
dword temp_file_count, tempbuf;
disc_num=0;
if (devbuf) free(devbuf);
devbuf = malloc(10000); //áóôåð ãäå-òî íà 10 äåâàéñîâ â ëåâîé ïàíåëè
@ -97,13 +99,15 @@ void GetSystemDiscs()
}
if (!strncmp(#sys_discs, "/rd/1/",6))
{
if (isdir("/kolibrios"))
GetDir(#tempbuf, #temp_file_count, "/kolibrios/", DIRS_ONLYREAL);
if (temp_file_count)
{
strncpy(#disk_list[disc_num].Item, "/kolibrios/",11);
kolibrios_drive = true;
disc_num++;
}
else kolibrios_drive = false;
free(tempbuf);
}
}
}