mirror of
https://github.com/ModOrganizer2/modorganizer-tool_inibakery.git
synced 2026-07-27 14:04:35 -07:00
Change IOrganizer::profile return type to a shared_ptr (#23)
This commit is contained in:
+3
-3
@@ -66,12 +66,12 @@ bool IniBakery::prepareIni(const QString&)
|
||||
|
||||
auto savegames = features->gameFeature<MOBase::LocalSavegames>();
|
||||
if (savegames != nullptr) {
|
||||
savegames->prepareProfile(m_MOInfo->profile());
|
||||
savegames->prepareProfile(m_MOInfo->profile().get());
|
||||
}
|
||||
|
||||
auto invalidation = features->gameFeature<BSAInvalidation>();
|
||||
if (invalidation != nullptr) {
|
||||
invalidation->prepareProfile(m_MOInfo->profile());
|
||||
invalidation->prepareProfile(m_MOInfo->profile().get());
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -83,7 +83,7 @@ MappingType IniBakery::mappings() const
|
||||
|
||||
const IPluginGame* game = m_MOInfo->managedGame();
|
||||
|
||||
IProfile* profile = m_MOInfo->profile();
|
||||
auto profile = m_MOInfo->profile();
|
||||
|
||||
if (profile->localSettingsEnabled()) {
|
||||
for (const QString& iniFile : iniFileNames()) {
|
||||
|
||||
Reference in New Issue
Block a user