A BepInEx Bleeding Edge (v667) plugin for Shadows of Doubt
"Fixes" the bug where V-Mails, surveillance files, etc. sometimes don't print. This is not a clean fix for the issue, just a workaround, but it should do the job.
If you are not using r2modman or Thunderstore for installation, follow these steps:
If your mod benefits from this bugfix, consider adding it as a HardDependency via BepInEx. You can also add to the affected preset names, if your mod introduces custom preset behavior.
// This attribute forces your mod to load after PrintBugfix, that's it.
// You may also need to add PrintBugfix to your manifest.json dependencies array
[BepInDependency(PrintBugfix.Plugin.PLUGIN_GUID, BepInDependency.DependencyFlags.HardDependency)]
public class Plugin : BasePlugin { // Or inheriting SOD.Common's PluginController instead of BasePlugin
public override void Load() {
// OPTIONAL: if your mod prints the preset named BirthCertificate
PrintBugfix.Plugin.RegisterAffectedPreset("BirthCertificate");
// Whatever your plugin startup logic is...
}
public override bool Unload() {
// OPTIONAL: if you registered a preset name in Load, unregister it here...
PrintBugfix.Plugin.UnregisterAffectedPreset("BirthCertificate");
// Whatever your plugin unload logic is...
}
}
All code in this repo is distributed under the MIT License. Feel free to use, modify, and distribute as needed.