diff -r 9e724f4863a3 -r 6af78154dc62 QTfrontend/util/namegen.cpp --- a/QTfrontend/util/namegen.cpp Sun Apr 01 15:23:34 2012 +0200 +++ b/QTfrontend/util/namegen.cpp Wed May 02 23:53:45 2012 +0200 @@ -1,7 +1,7 @@ /* * Hedgewars, a free turn based strategy game * Copyright (c) 2009 Martin Minarik - * Copyright (c) 2009-2012 Andrey Korotaev + * Copyright (c) 2004-2012 Andrey Korotaev * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,7 +23,7 @@ #include #include "hwform.h" -#include "HWDataManager.h" +#include "DataManager.h" #include "namegen.h" @@ -125,7 +125,7 @@ QStringList list; // find .txt to load the names from - QFile * file = new QFile(HWDataManager::instance().findFileForRead(QString( + QFile * file = new QFile(DataManager::instance().findFileForRead(QString( "Names/%1.txt").arg(filename))); if (file->exists() && file->open(QIODevice::ReadOnly | QIODevice::Text)) @@ -154,7 +154,7 @@ QStringList list; // find .cfg to load the dicts from - QFile * file = new QFile(HWDataManager::instance().findFileForRead(QString( + QFile * file = new QFile(DataManager::instance().findFileForRead(QString( "Names/%1.cfg").arg(hatname))); if (file->exists() && file->open(QIODevice::ReadOnly | QIODevice::Text)) @@ -184,7 +184,7 @@ // find .ini to load the names from QFile * file = new QFile( - HWDataManager::instance().findFileForRead(QString("Names/types.ini"))); + DataManager::instance().findFileForRead(QString("Names/types.ini"))); if (file->exists() && file->open(QIODevice::ReadOnly | QIODevice::Text)) @@ -243,7 +243,7 @@ QStringList Graves; //list all available Graves - Graves.append(HWDataManager::instance().entryList( + Graves.append(DataManager::instance().entryList( "Graphics/Graves", QDir::Files, QStringList("*.png") @@ -265,7 +265,7 @@ QStringList Forts; //list all available Forts - Forts.append(HWDataManager::instance().entryList( + Forts.append(DataManager::instance().entryList( "Forts", QDir::Files, QStringList("*L.png")