grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / filesys / CDVDFS / src / remcdfs.c
blob4122d089629352358909ba4276651b8dc2e11e89
1 #include <libraries/iffparse.h>
2 #include <resources/filesysres.h>
3 #include <proto/exec.h>
5 ULONG __abox__ = 1;
7 int Start()
9 struct ExecBase *SysBase = *(struct ExecBase **)(4L);
10 struct FileSysResource *fsr = OpenResource("FileSystem.resource");
12 if (fsr)
14 struct FileSysEntry *fse, *next;
16 Forbid();
18 for (fse = (struct FileSysEntry *)fsr->fsr_FileSysEntries.lh_Head;
19 fse->fse_Node.ln_Succ; fse = next)
21 next = (struct FileSysEntry *)fse->fse_Node.ln_Succ;
23 if (fse->fse_DosType == MAKE_ID('C', 'D', 'F', 'S'))
25 Remove(&fse->fse_Node);
29 Permit();
32 return 0;