コード例 #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
            }
        }
コード例 #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
            }
        }