Exemplo n.º 1
0
 public PatchModsMenu(TypeDefinitionCollection types, ModLoader loader)
     : base(types)
 {
     this.loader = loader;
     this.modManager = this.loader.modManager;
     this.repoManager = modManager.repoManager;
 }
Exemplo n.º 2
0
        public ModManager(ModLoader loader)
        {
            Platform.ErrorLog("ModManager creator");
            modsPath = Platform.getModsPath();

            if (!Directory.Exists(modsPath))
            {
                Directory.CreateDirectory(modsPath);
            }

            this.loader = loader;
            repoManager = new RepoManager(this);

            String installPath   = Platform.getGlobalScrollsInstallPath();
            String modLoaderPath = Platform.getModLoaderPath() + System.IO.Path.DirectorySeparatorChar;



            Platform.ErrorLog("loadInstalledMods");
            this.loadInstalledMods();
            Platform.ErrorLog("checkForUpdates");
            this.checkForUpdates();
            Platform.ErrorLog("sortInstalledMods");
            this.sortInstalledMods();
        }
Exemplo n.º 3
0
        public ModManager(ModLoader loader)
        {
            this.loader = loader;
            repoManager = new RepoManager(this);

            String installPath   = Platform.getGlobalScrollsInstallPath();
            String modLoaderPath = installPath + "ModLoader" + System.IO.Path.DirectorySeparatorChar;

            if (!Directory.Exists(modLoaderPath + "mods"))
            {
                Directory.CreateDirectory(modLoaderPath + "mods");
            }

            modsPath = modLoaderPath + "mods";

            this.loadInstalledMods();
            this.checkForUpdates();
            this.sortInstalledMods();
        }
Exemplo n.º 4
0
 public PatchModsMenu(TypeDefinitionCollection types, ModLoader loader) : base(types)
 {
     this.loader      = loader;
     this.modManager  = this.loader.modManager;
     this.repoManager = modManager.repoManager;
 }
Exemplo n.º 5
0
        public ModManager(ModLoader loader)
        {
            Platform.ErrorLog("ModManager creator");
            modsPath = Platform.getModsPath();

            if (!Directory.Exists (modsPath))
                Directory.CreateDirectory (modsPath);

            this.loader = loader;
            repoManager = new RepoManager (this);

            String installPath = Platform.getGlobalScrollsInstallPath();
            String modLoaderPath = Platform.getModLoaderPath() + System.IO.Path.DirectorySeparatorChar;

            Platform.ErrorLog("loadInstalledMods");
            this.loadInstalledMods ();
            Platform.ErrorLog("checkForUpdates");
            this.checkForUpdates   ();
            Platform.ErrorLog("sortInstalledMods");
            this.sortInstalledMods ();
        }