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 } }