• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

How to save a struct to INI?

I

IJsandwich

Guest
I've never used structs so I'm working with one to store some key info for my game; in this struct will be a number of very small ds grids (right now it's just one). I've also only ever written data structures to ini files, so I don't know how to save a whole struct containing data structures. How can I save this struct? Will I need to "open" the struct and save the grids individually? Will it be better to use arrays instead of small grids?

Also, keep in mind that I am kind of testing the waters with this struct/grid system. If this seems like a bad move or you have a better idea please let me know.
 
Don't use INI. Use JSON. The format is comparable to how structs are laid out, making it infinitely more useful than INI.

 
Top