1
0
Fork 0

added code to remove a virtual file

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2150
This commit is contained in:
Peter Veenstra 2005-03-25 09:09:22 +00:00
parent 32ffb30cb0
commit e6509a06a6

View file

@ -49,6 +49,19 @@ void VFILE_Register(const char * name,Bit8u * data,Bit32u size) {
first_file=new_file;
}
void VFILE_Remove(const char *name) {
VFILE_Block * chan=first_file;
VFILE_Block * * where=&first_file;
while (chan) {
if (strcmp(name,chan->name)==0) {
*where=chan->next;
delete chan;
return;
}
where=&chan->next;
chan=chan->next;
}
}
class Virtual_File : public DOS_File {
public: