Arnuh / HaSuite

All in one .wz file/map editor for MapleStory game files
Mozilla Public License 2.0
21 stars 7 forks source link

Cleanup configs #11

Open Arnuh opened 9 months ago

Arnuh commented 9 months ago

Base info "ApplicationSettings" exists as a base MapleLib type config. This is fine as something like "Custom Encryption" would be stored here as it's implemented in MapleLib and needs to be handled by MapleLib "UserSettings" is the HaRepacker config.

"UserSettings" 2 is the HaCreator config "ApplicationSettings" 2 is ?? HaCreator user settings but like idk they are different I guess

This is bit of a mess with what I can tell is 2 different ways of saving configs also

MapleLib and HaSharedLibrary will probably have to be manually loaded & saved inside of HaCreator/HaRepacker as I'd like to avoid some static class to store the information inside those 2 projects

Config placement can just be Environment.SpecialFolder.ApplicationData like already but do /HaSuite/Settings.json, /HaSuite/PheCreator.json, /HaSuite/PheRepacker.json

Arnuh commented 1 month ago

Currently trying out https://www.nuget.org/packages/Config.Net

Seems good enough for our needs. Upcoming CopyMode feature will be using it as a test.

Current path is %appdata%/HaSuite/PheRepacker.json