From f536b76e44e084d68530ba103dffc12c347210e8 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 26 Aug 2016 08:05:06 +0000 Subject: fixed librcc database path for portable mode (#879) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6689 90c681e8-e032-0410-971d-27865f9a5e38 --- src/app/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/app/main.cpp b/src/app/main.cpp index b7ae6f52a..21ce86a60 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -26,6 +26,7 @@ #include #include #ifdef Q_OS_WIN +#include #include #include #endif @@ -48,7 +49,10 @@ int main(int argc, char *argv[]) icon.addFile(":/56x56/qmmp.png"); icon.addFile(":/scalable/qmmp.svgz"); a.setWindowIcon(icon); - +#ifdef Q_OS_WIN + if(Qmmp::isPortable()) + qputenv("HOMEPATH", Qmmp::configDir().toLatin1()); //librcc database path +#endif QTranslator translator; QString locale = Qmmp::systemLanguageID(); translator.load(QString(":/qmmp_") + locale); -- cgit v1.2.3-13-gbd6f