Closed karolherbst closed 9 years ago
I can't see a reason to have the enum and its function if it's only going to be used once and require changing in three places when formats are changed rather than just one.
I was thinking about having a global util function later somewhere, that coul give us a list of formats for a given file name.
That sounds like an idea that's also useful for games, but would require some more thought to go in to it, perhaps like the Unix file command.
maybe there is a library for that already.
I think I will keep it that way, because I will change that part later anyway if we use our new property format. But with these changes, we can use xml/json/info to already read the new files without changing too much, so it is easier to change.
@Jookia I've added some error handling stuff. I think this is a good start to implement the new scheme. I think I will start with the source part, because it should integrate pretty well in the current scheme
can be tested with following files:
info:
ini:
json:
xml: