diff options
| author | Thomas Tanner <trtanner@btinternet.com> | 2015-11-28 14:53:32 +0000 |
|---|---|---|
| committer | Thomas Tanner <trtanner@btinternet.com> | 2015-11-28 14:53:32 +0000 |
| commit | 9e2bcffc32157b99a2d7364b869a4423ba827a32 (patch) | |
| tree | 0983cb8b1b915c016d39b9e2632562fcc813b40b /src/directoryrefresher.cpp | |
| parent | ca54ee2e9a8f1d49d81d5c3b66a860b9b16992d6 (diff) | |
Reworked startup considerably so now no longer dependant on GameInfo
Did some const correctness to the "managed_game" property as you shouldn't really be altering the plugin details whilst MO is running
Diffstat (limited to 'src/directoryrefresher.cpp')
| -rw-r--r-- | src/directoryrefresher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directoryrefresher.cpp b/src/directoryrefresher.cpp index 4eac4103..f50a717e 100644 --- a/src/directoryrefresher.cpp +++ b/src/directoryrefresher.cpp @@ -144,7 +144,7 @@ void DirectoryRefresher::refresh() m_DirectoryStructure = new DirectoryEntry(L"data", nullptr, 0);
- IPluginGame *game = qApp->property("managed_game").value<IPluginGame*>();
+ IPluginGame const *game = qApp->property("managed_game").value<IPluginGame const *>();
std::wstring dataDirectory = QDir::toNativeSeparators(game->dataDirectory().absolutePath()).toStdWString();
m_DirectoryStructure->addFromOrigin(L"data", dataDirectory, 0);
|
