Skip to content

Better error handling in config file reader #118

@Nightinggale

Description

@Nightinggale

Being in need of a config file reader, I found the one in SpeedControlConfig.cs.

It seems to work just fine, but I managed to crash the mod when not using the config file correctly. I expanded on the function to never crash and make it use default values in case it fails to read what it needs from the config file.

Here is the updated version. Feel free to use it if you like.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions