Exemplo n.º 1
0
        static PluginSettings()
        {
            var oldPaths = new _PathsSettings();
            var newPaths = new PathsSettings();

            try
            {
                Directory.CreateDirectory(newPaths.BaseDir.ToAbsolutePath());

                TryMoveFile(oldPaths.MasterDataFileName, newPaths.MasterDataFileName);
                TryMoveFile(oldPaths.EnemyDataFileName, newPaths.EnemyDataFileName);
                TryMoveFile(oldPaths.ResourceUrlMappingFileName, newPaths.ResourceUrlMappingFileName);
            }
            catch (UnauthorizedAccessException)
            {
                // cannot access, ignore
            }
        }
Exemplo n.º 2
0
        static PluginSettings()
        {
            var oldPaths = new _PathsSettings();
            var newPaths = new PathsSettings();

            try
            {
                Directory.CreateDirectory(newPaths.BaseDir.ToAbsolutePath());

                TryMoveFile(oldPaths.MasterDataFileName, newPaths.MasterDataFileName);
                TryMoveFile(oldPaths.EnemyDataFileName, newPaths.EnemyDataFileName);
                TryMoveFile(oldPaths.ResourceUrlMappingFileName, newPaths.ResourceUrlMappingFileName);
            }
            catch (UnauthorizedAccessException)
            {
                // cannot access, ignore
            }
        }