Skip to content

Add instance manager to plugin API#2335

Merged
Holt59 merged 4 commits intoModOrganizer2:masterfrom
JonathanFeenstra:iinstancemanager
Feb 8, 2026
Merged

Add instance manager to plugin API#2335
Holt59 merged 4 commits intoModOrganizer2:masterfrom
JonathanFeenstra:iinstancemanager

Conversation

@JonathanFeenstra
Copy link
Copy Markdown
Member

Comment thread src/instancemanager.h
// called; or
// 3) whatever was given in setGame()
//
QString gameName() const;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This applies to most method but these should still be const-qualified, just make the relevant fields mutable.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't readFromIni also need to be const-qualified for that to work?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing so should avoid the need to remove all the const-qualifiers from this PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't readFromIni also need to be const-qualified for that to work?

Yes, that should not be an issue I think. You can make readFromIni private if it's not already btw, should probably be cleaner now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright. readFromIni is also called from InstanceManagerDialog::updateInstances, but if I change all INI-values to be memoized, that should no longer be necessary

@Holt59 Holt59 merged commit 4da0bff into ModOrganizer2:master Feb 8, 2026
3 checks passed
@JonathanFeenstra JonathanFeenstra deleted the iinstancemanager branch February 8, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IOrganizer methods to get lists of profiles, instances and applications.

2 participants