void DOS_Drive_Cache::EmptyCache(void) { // Empty Cache and reinit Clear(); dirBase = new CFileInfo; save_dir = 0; srchNr = 0; SetBaseDir(basePath); }
DOS_Drive_Cache::DOS_Drive_Cache(const char* path) { dirBase = new CFileInfo; save_dir = 0; srchNr = 0; label[0] = 0; nextFreeFindFirst = 0; for (Bit32u i=0; i<MAX_OPENDIRS; i++) { dirSearch[i] = 0; dirFindFirst[i] = 0; }; SetDirSort(DIRALPHABETICAL); SetBaseDir(path); updatelabel = true; }
cLocalApplication::cLocalApplication(char *name, char *basePath, char *initialClass, ApplicationInfo::cTransportProtocol *tp) { SetBaseDir(basePath); SetInitialClass(initialClass); SetTransportProtocol(tp); //give local apps unique app ids, even if illegal ones SetAid(nextId--); SetOid(-1); SetControlCode(Present); SetApplicationType(LocalDVBJApplication); SetServiceBound(false); AddName("deu", name); //TODO: change "deu" to real VDR language }