if(driver.name && !strcmp(driver.name, driverName))
return driver;
}
-
+
/*{
Module module;
char moduleName[MAX_LOCATION];
{
//Class dsdClass = class(GlobalSettingsDriver);
Class dsdClass = eSystem_FindClass(module /-__thisModule.application-/, "GlobalSettingsDriver");
-
+
for(link = dsdClass.derivatives.first; link; link = link.next)
{
subclass(GlobalSettingsDriver) driver = link.data;
{
set { delete settingsName; if(value && value[0]) settingsName = CopyString(value); }
get { return settingsName; }
- };
+ };
property char * settingsExtension
{
set { delete settingsExtension; if(value && value[0]) settingsExtension = CopyString(value); }
property char * settingsFilePath
{
get { return settingsFilePath; }
- };
+ };
property bool allowDefaultLocations
{
set { allowDefaultLocations = value; }
char * PreparePortablePath()
{
- //
+ //
char * path = null;
char location[MAX_LOCATION];
LocateModule(null, location);
}
return path;
}
-
+
char * PrepareSystemPath()
{
char * path = new char[MAX_LOCATION];
result = success;
}
}
-
+
}
return result;
}
{
settingsMonitor.StopMonitoring();
f.Unlock(0,0,true);
- delete f; // WTH... this used to be: delete(f); f = null; // why?
+ delete f;
}
}
}
}
result = true;
- break;
+ break;
}
}
}
item.Next();
if(item.pointer)
strcat(outputLine, ",");
- }
+ }
break;
}
case singleString:
if(!f.GetLine(line, sizeof(line)))
break;
if(posBeforeSection == -1 || !line[0])
- posBeforeSection = pos;
-
+ posBeforeSection = pos;
+
if(line[0] == '[')
{
// We've already reached next section