diff options
| author | Thomas Tanner <trtanner@btinternet.com> | 2015-11-24 09:45:45 +0000 |
|---|---|---|
| committer | Thomas Tanner <trtanner@btinternet.com> | 2015-11-24 09:45:45 +0000 |
| commit | a7ef08965097fb4b863c99de2d6291733b4bc3c0 (patch) | |
| tree | d84a3c9e3eaf3687aab6ce3dcc5c528036d659d9 /src/profile.cpp | |
| parent | 37c3bea7dd5a562a97c00b740103cc2868b3013b (diff) | |
Use IPluginGame::getIniFiles throughout.
Also removed the default constructor from Profile class and stopped registering it as a QMetaObject (which it is the only reason it is there).
Diffstat (limited to 'src/profile.cpp')
| -rw-r--r-- | src/profile.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/profile.cpp b/src/profile.cpp index c6a2b43d..42dc56d1 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -46,13 +46,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. using namespace MOBase; using namespace MOShared; - -Profile::Profile() - : m_ModListWriter(std::bind(&Profile::writeModlistNow, this)) - , m_GamePlugin(qApp->property("managed_game").value<IPluginGame*>()) -{ -} - void Profile::touchFile(QString fileName) { QFile modList(m_Directory.filePath(fileName)); @@ -679,8 +672,7 @@ QString Profile::getDeleterFileName() const QString Profile::getIniFileName() const { - std::wstring primaryIniFile = *(GameInfo::instance().getIniFileNames().begin()); - return m_Directory.absoluteFilePath(ToQString(primaryIniFile)); + return m_Directory.absoluteFilePath(m_GamePlugin->getIniFiles()[0]); } QString Profile::getProfileTweaks() const |
