From 4b94c134723328fb5c3cefe7aa0df197675c0b76 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 3 Jul 2014 07:25:59 +0000 Subject: added rusxmms autodetection (win32 only) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4327 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/mad/decodermadfactory.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/plugins/Input/mad/decodermadfactory.cpp') diff --git a/src/plugins/Input/mad/decodermadfactory.cpp b/src/plugins/Input/mad/decodermadfactory.cpp index 2b6aeb8ba..2c8ca8f86 100644 --- a/src/plugins/Input/mad/decodermadfactory.cpp +++ b/src/plugins/Input/mad/decodermadfactory.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2012 by Ilya Kotov * + * Copyright (C) 2008-2014 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -153,6 +153,11 @@ QList DecoderMADFactory::createPlayList(const QString &fileName, boo } settings.endGroup(); +#ifdef Q_OS_WIN //rusxmms autodetection + if(QFile::exists(qApp->applicationDirPath() + "/librcc.dll")) + codec = QTextCodec::codecForName ("UTF-8"); +#endif + if (!codec) codec = QTextCodec::codecForName ("UTF-8"); -- cgit v1.2.3-13-gbd6f