simake / osu-tool

WIP
0 stars 0 forks source link

Config file #4

Closed simake closed 6 years ago

simake commented 6 years ago

Move configurable settings to a separate .ini file, such as what file extensions to treat as images, videos, etc.

simake commented 6 years ago

How is this best implemented?

Making a singleton Config class would be convenient and wouldn't be too bad if I made it read-only (no risk of classes implicitly talking to each other via the global singleton class). It would still make testing difficult, however.

simake commented 6 years ago

A singleton in conjunction with proper interfaces would be a better option (only exposing a subset of the settings to each part of the program). But that may be a bit excessive for this project.