[Bug]: MelonPreferences LoadFromFile and SaveToFile does not generate Exception #328
Open
1 of 8 tasks
Labels
Bug / Issue
Something isn't working
Work-in-Progress
This issue or pull request is being worked on currently
All of the following criteria must be met
Latest.log
file included. If no file exists then leave this unchecked and state so.All of the following are optional to answer
Describe the issue.
When you are using MelonPreferences_Category methods LoadFromFile() and SaveToFile() you have no idea if they fail.
You can't fix or know situation where configuration files is broken and there is no real connection between file and mod anymore.
Example code:
After first run, corrupt cfg file somehow, example "MODenabled = tre" (real life scenario)
After this, there is no way know inside mod that file is corrupted.
Console will show:
Please notice line "[MelonTest] MelonPreferences Saved to Mods/MelonTest.cfg" which is not incorrect. It is not true.
But in code, no errors all.
Expected result is raised Exception which would allow fix situation.
Did you attach your log file?
{Game_Directory}\MelonLoader\Latest.log
The text was updated successfully, but these errors were encountered: