Пример #1
0
        public void Test_Common()
        {
            string prFile = TestUtils.PrepareTestFile("test_pathreplace.yaml");

            fPathReplacer.Load(prFile);

            Assert.AreEqual("/home/path11/x.yyy", fPathReplacer.TryReplacePath(@"D:\path1\x.yyy", false));
        }
Пример #2
0
        public static void InitSettings()
        {
            Logger.LogInit(GetLogFilename());

            Plugins.Load(AppHost.Instance, GKUtils.GetPluginsPath());

            var options = GlobalOptions.Instance;

            options.LoadFromFile(GetAppDataPathStatic() + "GEDKeeper2.ini");
            options.FindLanguages();

            NamesTable.LoadFromFile(GetAppDataPathStatic() + "GEDKeeper2.nms");

            PathReplacer.Load(GKUtils.GetAppPath() + "crossplatform.yaml"); // FIXME: path
        }