- return strtoformat(0, format);
-}
-
-int File::strtoformat(ArrayList<PluginServer*> *plugindb, const char *format)
-{
- if(!strcasecmp(format, _(AC3_NAME))) return FILE_AC3;
- if(!strcasecmp(format, _(SCENE_NAME))) return FILE_SCENE;
- if(!strcasecmp(format, _(WAV_NAME))) return FILE_WAV;
- if(!strcasecmp(format, _(PCM_NAME))) return FILE_PCM;
- if(!strcasecmp(format, _(AU_NAME))) return FILE_AU;
- if(!strcasecmp(format, _(AIFF_NAME))) return FILE_AIFF;
- if(!strcasecmp(format, _(SND_NAME))) return FILE_SND;
- if(!strcasecmp(format, _(PNG_NAME))) return FILE_PNG;
- if(!strcasecmp(format, _(PNG_LIST_NAME))) return FILE_PNG_LIST;
- if(!strcasecmp(format, _(TIFF_NAME))) return FILE_TIFF;
- if(!strcasecmp(format, _(TIFF_LIST_NAME))) return FILE_TIFF_LIST;
- if(!strcasecmp(format, _(JPEG_NAME))) return FILE_JPEG;
- if(!strcasecmp(format, _(JPEG_LIST_NAME))) return FILE_JPEG_LIST;
- if(!strcasecmp(format, _(EXR_NAME))) return FILE_EXR;
- if(!strcasecmp(format, _(EXR_LIST_NAME))) return FILE_EXR_LIST;
- if(!strcasecmp(format, _(FLAC_NAME))) return FILE_FLAC;
- if(!strcasecmp(format, _(CR2_NAME))) return FILE_CR2;
- if(!strcasecmp(format, _(CR2_LIST_NAME))) return FILE_CR2_LIST;
- if(!strcasecmp(format, _(MPEG_NAME))) return FILE_MPEG;
- if(!strcasecmp(format, _(AMPEG_NAME))) return FILE_AMPEG;
- if(!strcasecmp(format, _(VMPEG_NAME))) return FILE_VMPEG;
- if(!strcasecmp(format, _(TGA_NAME))) return FILE_TGA;
- if(!strcasecmp(format, _(TGA_LIST_NAME))) return FILE_TGA_LIST;
- if(!strcasecmp(format, _(OGG_NAME))) return FILE_OGG;
- if(!strcasecmp(format, _(VORBIS_NAME))) return FILE_VORBIS;
- if(!strcasecmp(format, _(RAWDV_NAME))) return FILE_RAWDV;
- if(!strcasecmp(format, _(FFMPEG_NAME))) return FILE_FFMPEG;
- if(!strcasecmp(format, _(DBASE_NAME))) return FILE_DB;
+ if( !strcasecmp(format, _(AC3_NAME)) ) return FILE_AC3;
+ if( !strcasecmp(format, _(SCENE_NAME)) ) return FILE_SCENE;
+ if( !strcasecmp(format, _(WAV_NAME)) ) return FILE_WAV;
+ if( !strcasecmp(format, _(PCM_NAME)) ) return FILE_PCM;
+ if( !strcasecmp(format, _(AU_NAME)) ) return FILE_AU;
+ if( !strcasecmp(format, _(AIFF_NAME)) ) return FILE_AIFF;
+ if( !strcasecmp(format, _(SND_NAME)) ) return FILE_SND;
+ if( !strcasecmp(format, _(PNG_NAME)) ) return FILE_PNG;
+ if( !strcasecmp(format, _(PNG_LIST_NAME)) ) return FILE_PNG_LIST;
+ if( !strcasecmp(format, _(TIFF_NAME)) ) return FILE_TIFF;
+ if( !strcasecmp(format, _(TIFF_LIST_NAME)) ) return FILE_TIFF_LIST;
+ if( !strcasecmp(format, _(JPEG_NAME)) ) return FILE_JPEG;
+ if( !strcasecmp(format, _(JPEG_LIST_NAME)) ) return FILE_JPEG_LIST;
+ if( !strcasecmp(format, _(EXR_NAME)) ) return FILE_EXR;
+ if( !strcasecmp(format, _(EXR_LIST_NAME)) ) return FILE_EXR_LIST;
+ if( !strcasecmp(format, _(FLAC_NAME)) ) return FILE_FLAC;
+ if( !strcasecmp(format, _(CR2_NAME)) ) return FILE_CR2;
+ if( !strcasecmp(format, _(CR2_LIST_NAME)) ) return FILE_CR2_LIST;
+ if( !strcasecmp(format, _(MPEG_NAME)) ) return FILE_MPEG;
+ if( !strcasecmp(format, _(AMPEG_NAME)) ) return FILE_AMPEG;
+ if( !strcasecmp(format, _(VMPEG_NAME)) ) return FILE_VMPEG;
+ if( !strcasecmp(format, _(TGA_NAME)) ) return FILE_TGA;
+ if( !strcasecmp(format, _(TGA_LIST_NAME)) ) return FILE_TGA_LIST;
+ if( !strcasecmp(format, _(OGG_NAME)) ) return FILE_OGG;
+ if( !strcasecmp(format, _(VORBIS_NAME)) ) return FILE_VORBIS;
+ if( !strcasecmp(format, _(RAWDV_NAME)) ) return FILE_RAWDV;
+ if( !strcasecmp(format, _(FFMPEG_NAME)) ) return FILE_FFMPEG;
+ if( !strcasecmp(format, _(DBASE_NAME)) ) return FILE_DB;