# HG changeset patch
# User nemo
# Date 1359726427 18000
# Node ID 29b891dbf2a012b32417a3f2004c5ed2ab50a5e3
# Parent  c708b4f5cffcba23be4b8dfd6d427de397912b8a
forgot this one

diff -r c708b4f5cffc -r 29b891dbf2a0 QTfrontend/model/GameStyleModel.cpp
--- a/QTfrontend/model/GameStyleModel.cpp	Thu Jan 31 22:13:30 2013 -0500
+++ b/QTfrontend/model/GameStyleModel.cpp	Fri Feb 01 08:47:07 2013 -0500
@@ -25,12 +25,11 @@
 
 #include "physfs.h"
 #include "GameStyleModel.h"
+#include "hwconsts.h"
 
 
 void GameStyleModel::loadGameStyles()
 {
-    const QString appDir = QString(PHYSFS_getBaseDir());
-
     beginResetModel();
 
     // empty list, so that we can (re)fill it
@@ -81,7 +80,7 @@
 
         // detect if script is dlc
         QString scriptPath = PHYSFS_getRealDir(QString("Scripts/Multiplayer/%1.lua").arg(script).toLocal8Bit().data());
-        bool isDLC = !scriptPath.startsWith(appDir);
+        bool isDLC = !scriptPath.startsWith(datadir->absolutePath());
 
         QStandardItem * item = new QStandardItem((isDLC ? "*" : "") + name);