private string CreateNewLibraryCallback(string libraryName, PresetFileLocation fileLocation)
{
string presetLibraryPathWithoutExtension = Path.Combine(PresetLibraryLocations.GetDefaultFilePathForFileLocation(fileLocation), libraryName);
if (this.CreateNewLibrary(presetLibraryPathWithoutExtension) != null)
{
this.currentLibraryWithoutExtension = presetLibraryPathWithoutExtension;
}
return(ScriptableSingleton <PresetLibraryManager> .instance.GetLastError());
}