Editing User:Dninemfive
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 44: | Line 44: | ||
=== ModLister.RoyaltyInstalled === | === ModLister.RoyaltyInstalled === | ||
In C#, the canonical check for whether Royalty is installed is <code>ModLister.RoyaltyInstalled</code>. Notably, this check whether the Steam user ''owns'' Royalty, rather than whether it's enabled in the load order. | In C#, the canonical check for whether Royalty is installed is <code>ModLister.RoyaltyInstalled</code>. Notably, this check whether the Steam user ''owns'' Royalty, rather than whether it's enabled in the load order. | ||
− | === | + | === IfModLoaded === |
− | You can use the <code> | + | You can use the <code>IfModLoaded</code> and <code>IfModNotLoaded</code> attributes in <code>LoadFolders.xml</code> to conditionally load defs, treating Royalty as a mod. |
<source lang="xml"> | <source lang="xml"> | ||
<loadFolders> | <loadFolders> | ||
<default> | <default> | ||
<li>/</li> | <li>/</li> | ||
− | <li | + | <li IfModLoaded="Royalty">RoyaltyDefs</li> |
</default> | </default> | ||
</loadFolders> | </loadFolders> |