Please use UnityModManager.modsPath in order to get the Mods directory. It isn't necessarily in the current working directory, Pathfinder Kingmaker/game. If the user selected Pathfinder Kingmaker as the path when setting up unity mod manager, for example, the mod fails to load with a file not found exception.
https://github.com/Holic75/KingmakerProperFlanking/blob/1fb5f11b1ade1c2d6f1987509804715643f7daf7/ProperFlanking20/Main.cs#L30
Please use
UnityModManager.modsPath
in order to get theMods
directory. It isn't necessarily in the current working directory,Pathfinder Kingmaker/game
. If the user selectedPathfinder Kingmaker
as the path when setting up unity mod manager, for example, the mod fails to load with a file not found exception.