Пример #1
0
        static OblivionMod GetSourceMod(ModList <OblivionMod> modList)
        {
            if (!File.Exists(Properties.Settings.Default.SourceFile))
            {
                throw new ArgumentException($"DLL source mod could not be found at location: {Properties.Settings.Default.SourceFile}");
            }
            var mod = OblivionMod.Create_Binary(
                Properties.Settings.Default.SourceFile,
                sourceModKey);

            mod.Link(modList);
            return(mod);
        }