mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
graphics and soft dependency warnings
This commit is contained in:
parent
0e8eafafd6
commit
cb14370132
11 changed files with 45 additions and 2 deletions
38
Source/Base/SoftDependencyChecker.cs
Normal file
38
Source/Base/SoftDependencyChecker.cs
Normal file
|
@ -0,0 +1,38 @@
|
|||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
|
||||
namespace C0ffee_s_RJW_Ideology_Addons
|
||||
{
|
||||
[StaticConstructorOnStartup]
|
||||
public static class SoftDependencyChecker
|
||||
{
|
||||
static SoftDependencyChecker()
|
||||
{
|
||||
|
||||
string missingSoftDependencies = "";
|
||||
|
||||
if (LoadedModManager.RunningModsListForReading.Any((ModContentPack x) => x.PackageId == "c0ffee.rjw.events"))
|
||||
{
|
||||
missingSoftDependencies += "missing RJW Events, orgies will NOT be included; ";
|
||||
}
|
||||
if (LoadedModManager.RunningModsListForReading.Any((ModContentPack x) => x.PackageId == "rjw.milk.humanoid"))
|
||||
{
|
||||
missingSoftDependencies += "missing RJW Milkable Colonists, hucow and lactation will NOT be included; ";
|
||||
}
|
||||
|
||||
if(missingSoftDependencies != "")
|
||||
{
|
||||
Log.Warning("[c0ffee's RJW Ideology Addons] Warning, you're missing the following soft dependencies: " + missingSoftDependencies + " Features involving those mods will be disabled. Not that those mods are required, but just so ya know :> -c0ffee");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue