[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/games/astrododge/src
From: Rivo Laks <rivolaks () hot ! ee>
Date: 2009-08-08 19:22:19
Message-ID: 1249759339.689447.27475.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1008960 by rivol:
Use DataStore for finding data dir.
M +2 -3 displaywidget.cpp
--- trunk/playground/games/astrododge/src/displaywidget.cpp #1008959:1008960
@@ -18,6 +18,7 @@
#include "displaywidget.h"
#include "gameview.h"
+#include "datastore.h"
#include <kgllib/camera.h>
#include <kgllib/widgetproxy.h>
@@ -96,9 +97,7 @@
{
kDebug();
// Find where our data is
- mDataDir = KGlobal::dirs()->findResourceDir("appdata", "shaders/space.frag");
- kDebug() << "Data dir is" << mDataDir;
- setDataPath(mDataDir + "shaders/");
+ setDataPath(DataStore::instance()->dataDir() + "shaders/");
HdrGLWidget::initializeGL();
setAutoExposure(true);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic