Esempio n. 1
0
        /// <summary>
        /// Applied before IsDlcListValidForCurrentContent runs.
        /// </summary>
        internal static bool Prefix(string[] dlcIds, ref bool __result)
        {
            int  n = dlcIds.Length;
            bool found = false, noDLC = string.IsNullOrEmpty(DLCManagerCache.
                                                             GetHighestActiveDlc());

            for (int i = 0; i < n && !found; i++)
            {
                string dlcId       = dlcIds[i];
                bool   vanillaOnly = string.IsNullOrEmpty(dlcId);
                if ((noDLC && vanillaOnly) || (!vanillaOnly && DLCManagerCache.IsDlcEnabled(
                                                   dlcId)))
                {
                    found = true;
                }
            }
            __result = found;
            return(false);
        }
Esempio n. 2
0
 /// <summary>
 /// Applied before GetHighestActiveDlcId runs.
 /// </summary>
 internal static bool Prefix(ref string __result)
 {
     __result = DLCManagerCache.GetHighestActiveDlc();
     return(false);
 }
Esempio n. 3
0
 /// <summary>
 /// Applied before IsContentActive runs.
 /// </summary>
 internal static bool Prefix(string dlcId, ref bool __result)
 {
     __result = DLCManagerCache.IsDlcEnabled(dlcId);
     return(false);
 }