IProfile¶
-
class
mobase.IProfile¶ Bases:
objectInterface to interact with Mod Organizer 2 profiles.
Methods Summary
absoluteIniFilePath(inifile)Retrieve the absolute file path to the corresponding INI file for this profile.
- returns
The absolute path to the profile folder.
- returns
True if automatic archive invalidation is enabled for this profile, False otherwise.
- returns
True if profile-specific saves are enabled for this profile, False otherwise.
- returns
True if profile-specific game settings are enabled for this profile, False otherwise.
name()- returns
The name of this profile.
Methods Documentation
-
absoluteIniFilePath(inifile)¶ Retrieve the absolute file path to the corresponding INI file for this profile.
If iniFile does not correspond to a file in the list of INI files for the current game (as returned by IPluginGame::iniFiles), the path to the global file will be returned (if iniFile is absolute, iniFile is returned, otherwise the path is assumed relative to the game documents directory).
- Parameters
inifile – INI file to retrieve a path for. This can either be the name of a file or a path to the absolute file outside of the profile.
- Returns
The absolute path for the given INI file for this profile.
- Return type
str
-
absolutePath()¶ - Returns
The absolute path to the profile folder.
- Return type
str
-
invalidationActive()¶ - Returns
True if automatic archive invalidation is enabled for this profile, False otherwise.
- Return type
Tuple[bool,bool]
-
localSavesEnabled()¶ - Returns
True if profile-specific saves are enabled for this profile, False otherwise.
- Return type
bool
-
localSettingsEnabled()¶ - Returns
True if profile-specific game settings are enabled for this profile, False otherwise.
- Return type
bool
-
name()¶ - Returns
The name of this profile.
- Return type
str