ModOrganizer2 / modorganizer

Mod manager for various PC games. Discord Server: https://discord.gg/ewUVAqyrQX if you would like to be more involved
http://www.nexusmods.com/skyrimspecialedition/mods/6194
GNU General Public License v3.0
2.09k stars 158 forks source link

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

Open Kezyma opened 2 years ago

Kezyma commented 2 years ago

Is your feature request related to a problem? Please describe. A few of my plugins need to get the following lists and currently I work around them by trying to determine what the options are manually;

Describe the solution you'd like IOrganizer.getAllProfiles() to get a list of strings with the profile names. IOrganizer.getAllInstances() to get a list of strings with the instance names. IOrganizer.getAllApplications() to get a list of ExecutableInfo or something comparable with the information on added applications. IOrganizer.instance() to get a string with the current instance name or empty if portable.

Describe alternatives you've considered I just search and parse stuff manually to figure it out.

Holt59 commented 2 years ago

The list of all profiles and the list of all applications is probably not too complicated to add, although ExecutableInfo is something specific to game plugins so that would probably be a different type of objects.

There is no way currently to list all instances on a computer, only global instances can be listed, even within MO2 itself.

Kezyma commented 2 years ago

Yeah, executableinfo was just an example, any object with the name of the exe in MO, the exe path and the command line arguments would be good!

A list of global instances would be good, basically just the list of instances in Mod Organizer's instance selection menu!