kozaka-tv / Rocksmith-Servant

MIT License
6 stars 5 forks source link

Refactor config logic. Use dataclass properly in config_data #278

Closed kozaka-tv closed 3 months ago

kozaka-tv commented 3 months ago

In ConfigData class, the @dataclasses.dataclass is used, but not in the proper way. It should be without init and just like this:

image

The ConfigReaded should read the config file, and fill ConfigData with the values. Then if ConfigReader is called, it should just return a filled ConfigData. Like:

image