Пример #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);
        }
Пример #2
0
 /// <summary>
 /// Applied before IsContentActive runs.
 /// </summary>
 internal static bool Prefix(string dlcId, ref bool __result)
 {
     __result = DLCManagerCache.IsDlcEnabled(dlcId);
     return(false);
 }