mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
22 lines
743 B
C#
22 lines
743 B
C#
using HarmonyLib;
|
|
using NewHorizons.Components.EOTE;
|
|
|
|
namespace NewHorizons.Patches.ShipLogPatches;
|
|
|
|
[HarmonyPatch]
|
|
public static class ShipLogSlideReelPatches
|
|
{
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(typeof(ShipLogSlideProjector), nameof(ShipLogSlideProjector.CheckStreamingTexturesAvailable))]
|
|
public static bool ShipLogSlideProjector_CheckStreamingTexturesAvailable(ShipLogSlideProjector __instance, ref bool __result)
|
|
{
|
|
if (__instance._collectionIndex >= 0 && __instance._collectionIndex < __instance._slideCollections.Count &&
|
|
__instance._slideCollections[__instance._collectionIndex] is NHSlideCollection)
|
|
{
|
|
__result = true;
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|