48f85a4323
LaiNES now can save and load configuration. At the moment, it's the size of the window, and the key bindings. Instead of cluttering the gui, I broke the config out to its own file. Also added "home config directory" support, which is the standard for *nix I suppose.
12 lines
153 B
C++
12 lines
153 B
C++
#include "gui.hpp"
|
|
#include "config.hpp"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
GUI::load_settings();
|
|
GUI::init();
|
|
GUI::run();
|
|
|
|
return 0;
|
|
}
|