return dressedfile.substr(dressedfile.find_last_of("\\/")+1);
}
-bool hypercache::readC() {
- bool readret;
+int hypercache::readC() {
+ int readret;
- if ( readret = C->readConfig(&parentConfigs) )
+ readret = C->readConfig(&parentConfigs);
+
+ if ( readret == -1 )
activeCFile = fileOfPath(C->getInFileName());
else
activeCFile = "";
O->writeConfig();
}
-bool hypercache::readO() {
- bool readret;
+int hypercache::readO() {
+ int readret;
+
+ readret = O->readConfig();
- if ( readret = O->readConfig() ) {
+ if ( readret == -1 ) {
unsigned long *parentconfig = (unsigned long*)O->getHeader("concurrent_cfile");
if ( parentconfig != NULL )
addParentConfig(parentconfig);
}
-
+
return readret;
}