Exemplo n.º 1
0
        public MinecraftInstance()
        {
            m_path = new MinecraftPaths();
            m_jar = new MinecraftJar(m_path.jarPath);
            m_jar.TempPath = m_path.tempDir;
            CompressedFile.defaultTempDir = m_path.tempDir;
            m_config = new ModConfig(m_path);

            //fsWatcher = new FileSystemWatcher(m_path.appModDir);
            //fsWatcher.Changed += new FileSystemEventHandler(fsWatcher_Changed);
            InitInstance();
            addAllMods();
            pruneConfig();
        }
Exemplo n.º 2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     targetMod.InstallActions = Actions;
     ModConfig conf = new ModConfig(new MinecraftPaths(StateProvider.ActiveInstancePaths.modConfigFile));
     conf.updateMod(targetMod);
     conf.save();
     Close();
 }