Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow string "Harmony" in DLL parent folder names #4123

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

HebaruSan
Copy link
Member

@HebaruSan HebaruSan commented Jul 11, 2024

Problem

CelestialHarmony has been having spurious inflation errors for a bit over a week.

image

Cause

The guardrail to catch bundled copies of the Harmony DLL from #3326 checks the entire file path, not just the file name, so a folder with a name coincidentally containing the string "Harmony" will cause a false positive if it contains a DLL.

Changes

Now this check only looks for "Harmony" in the filename by starting the search at Math.Max(0, f.LastIndexOf('/')).

@HebaruSan HebaruSan added Bug Something is not working as intended Easy This is easy to fix Netkan Issues affecting the netkan data labels Jul 11, 2024
@HebaruSan HebaruSan merged commit 1b5948f into KSP-CKAN:master Jul 11, 2024
3 checks passed
@HebaruSan HebaruSan deleted the fix/harmony-folders branch July 11, 2024 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working as intended Easy This is easy to fix Netkan Issues affecting the netkan data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant