This is probably one of the places where using a simple database as a file system makes sense.
Use something like sqlite to store data (with paths in the form of keys, drops in the form of data, or something like that).
One of the advantages of this is that you donβt really have to worry about the repository, and you can use existing database tools to view / edit data βofflineβ, instead of writing it yourself. (In addition, you can also store other information about the game).
source share