bool KolibriosMounted() { static bool kolibrios_mounted; if (kolibrios_mounted) return true; kolibrios_mounted = real_dir_exists("/kolibrios"); return kolibrios_mounted; } struct _SystemDiscs { collection list; int dev_num; void Get(); void Draw(); void DrawSelect(); void DrawOptions(); } SystemDiscs=0; void _SystemDiscs::Get() { char dev_name[10], sys_discs[10]; int i1, j1, dev_disc_num, real_dev_num; dword devbuf, diskbuf; list.drop(); devbuf = malloc(10000); ReadDir(19, devbuf, "/"); dev_num = real_dev_num = EBX; list.add("/sys"); dev_num++; if (KolibriosMounted()) { //need to check that /sys != /kolibrios list.add("/kolibrios"); dev_num++; } for (i1=0; i1