private void PatchGame(IList <IModData> mods) { _owPatcher.PatchGame(); var vrMod = mods.FirstOrDefault(x => x.Config.RequireVR && x.Config.Enabled); var enableVR = vrMod != null; _writer.WriteLine(enableVR ? $"{vrMod.Manifest.UniqueName} requires VR." : "No mods require VR."); _vrPatcher.PatchVR(enableVR); }
private void PatchGame(IList <IModData> mods) { _owPatcher.PatchGame(); try { var enableVR = HasVrMod(mods); _vrPatcher.PatchVR(enableVR); } catch (Exception ex) { _writer.WriteLine($"Error while applying VR patch: {ex}"); } }