AndreaOrru / LaiNES

Cycle-accurate NES emulator in ~1000 lines of code
BSD 2-Clause "Simplified" License
1.49k stars 115 forks source link

Save settings #23

Closed AndreaOrru closed 7 years ago

AndreaOrru commented 7 years ago

Pretty tired of having to reconfigure the joystick every time I open this :)

kraln commented 7 years ago

so far, it's screen size and joystick. would also like to consider making some other things (sound sampling rate?) configurable.

Do you think flatfile (ini? https://github.com/benhoyt/inih?), json, sqlite, etc?

AndreaOrru commented 7 years ago

Yeah sure, the more the merrier.

A simple ini format will suffice. Inih looks really nice, but C++ dependencies are a real pain. Probably better to write a simple parser in house. :)

kraln commented 7 years ago

https://arxiv.org/pdf/1103.3021.pdf?origin=publication_detail for existing stuff

kraln commented 7 years ago

Resolved with #25, right? :)