Skip to content

sgd2fr::config::ReadConfig(): Use default config on parse error - #1

Open
Slacker86 wants to merge 1 commit into
Project-Diablo-2:developfrom
Slacker86:parseError
Open

sgd2fr::config::ReadConfig(): Use default config on parse error#1
Slacker86 wants to merge 1 commit into
Project-Diablo-2:developfrom
Slacker86:parseError

Conversation

@Slacker86

Copy link
Copy Markdown

This is something that comes up every now and then.

Since users are not expected to modify SGD2FreeRes's config file, if, likely due to unfortunately timed process termination, the config file ends up being malformed, just load up the defaults instead of forcing the user to remove the file by hand.

(Yes, this is a slight hack due to the available API's clunkiness).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant