// Convert Noatun 1.2 plugins that no longer exist to their closest 2.0 // counterparts. #include #include #ifndef stdin extern "C" FILE *stdin; #endif #ifndef stdout extern "C" FILE *stdout; #endif int main(int, char **) { TQFile qin, qout; qin.open(IO_ReadOnly, stdin); qout.open(IO_WriteOnly, stdout); TQString text = qin.readAll(); // tag loaders bool tagloaders = text.tqcontains("id3tag.plugin") || text.tqcontains("oggtag.plugin") || text.tqcontains("luckytag.plugin"); text.tqreplace(TQRegExp("id3tag\\.plugin"), ""); text.tqreplace(TQRegExp("oggtag\\.plugin"), ""); text.tqreplace(TQRegExp("luckytag\\.plugin"), ""); if(tagloaders) text.tqreplace(TQRegExp("Modules="), "Modules=metatag.plugin,"); // playlists text.tqreplace(TQRegExp("tron\\.plugin"), "splitplaylist.plugin"); text.tqreplace(TQRegExp("liszt\\.plugin"), "splitplaylist.plugin"); qout.writeBlock(text.local8Bit()); return 0; }