Beispiel #1
0
 public ModObject(string rootPath, ModDirectorySource parent)
 {
     this.RootPath   = rootPath;
     this.RootSource = parent;
     Parser          = new IniParser.Parser.IniDataParser();
     Parser.Configuration.AllowDuplicateKeys = true;
     Refresh();
 }
Beispiel #2
0
        public void ChangeModSource(ModDirectorySource source)
        {
            Thread.CurrentThread.CurrentCulture   = CultureInfo.CreateSpecificCulture("en-US");
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");

            var newRoot = Path.Combine(source.Root, Path.GetFileName(RootPath));

            Utils.CleanupAttrib(RootPath);
            Utils.MoveDir(RootPath, newRoot);
            this.RootPath   = newRoot;
            this.RootSource = source;
        }