Skip to content

Conversation

@p1xel8ted
Copy link
Contributor

This pull request updates several files to improve the robustness of enum parsing by making it case-insensitive, and adds missing using System; directives where necessary. The main changes ensure that string values can be parsed into their respective enums regardless of letter casing, which helps prevent runtime errors due to case mismatches.

Enum parsing improvements:

  • Updated all Enum.Parse calls to include the ignoreCase: true parameter, making enum parsing case-insensitive in CustomSkinManager.cs, KeyCodes.cs, and SettingsPatches.cs. [1] [2] [3]

Code quality and consistency:

  • Added missing using System; directives to files that use enums and parsing, ensuring necessary namespaces are included in CustomSkinManager.cs, KeyCodes.cs, and SettingsPatches.cs. [1] [2] [3]

Copilot AI and others added 4 commits January 26, 2026 02:17
Co-authored-by: p1xel8ted <10510767+p1xel8ted@users.noreply.github.com>
Co-authored-by: p1xel8ted <10510767+p1xel8ted@users.noreply.github.com>
…um-issue

Make Enum.Parse case-insensitive to fix ArgumentException on save load
@vercel
Copy link

vercel bot commented Jan 26, 2026

@p1xel8ted is attempting to deploy a commit to the hayper's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the API The core of this package label Jan 26, 2026
@github-actions
Copy link

Download the artifacts for this pull request:

@InfernoDragon0
Copy link
Collaborator

would "using System" be redundant?

@zelzmiy
Copy link
Contributor

zelzmiy commented Jan 26, 2026

would "using System" be redundant?

I checked, yes using system; is redundant in all three files. Copilot how you irritate me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API The core of this package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants