[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [gluon] core: Add the proper Windows Registry Entry in case of 64
From:       Laszlo Papp <lpapp () kde ! org>
Date:       2011-07-31 21:42:14
Message-ID: 20110731214214.F169AA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 140b398b49769e8c73e490ed5baacb9fea5d02e1 by Laszlo Papp.
Committed on 01/08/2011 at 02:39.
Pushed by lpapp into branch 'master'.

Add the proper Windows Registry Entry in case of 64 bit architecture

It makes possible to get the proper install prefix path in case of 64 bit
architecture meaning that, for instance the games will be properly listed inside
the gluon_qtplayer, but it also takes effect on any codebase that uses the
relevant methods from the directoryprovider class.

M  +3    -2    core/directoryprovider.cpp

http://commits.kde.org/gluon/140b398b49769e8c73e490ed5baacb9fea5d02e1

diff --git a/core/directoryprovider.cpp b/core/directoryprovider.cpp
index fb09376..77dcc9e 100644
--- a/core/directoryprovider.cpp
+++ b/core/directoryprovider.cpp
@@ -55,8 +55,9 @@ QString DirectoryProvider::installPrefix() const
     QSettings *settings;
     if (GLUON_ARCHITECTURE == "32")
         settings = new \
QSettings("HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Gluon\\Gluon-" + \
                GLUON_VERSION_STRING + "\\", QSettings::NativeFormat);
-    //else if (GLUON_ARCHITECTURE == "64")
-    //	;
+    else if (GLUON_ARCHITECTURE == "64")
+        settings = new QSettings("HKEY_LOCAL_MACHINE\\SOFTWARE\\Gluon\\Gluon-" + \
GLUON_VERSION_STRING + "\\", QSettings::NativeFormat); +
     QString installPath = settings->value("Default").toString();
     delete settings;
     return installPath.isEmpty() ? GLUON_INSTALL_PREFIX : installPath;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic