settings get read&written

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@11 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-07 20:38:49 +00:00
parent bbf016443d
commit 35ece4674d
13 changed files with 102 additions and 25 deletions
+11 -4
View File
@@ -6,7 +6,12 @@
// ----------------------------------------------------------------------------- : Includes
#include "util/prec.hpp"
#include <util/prec.hpp>
#include <data/game.hpp>
#include <data/set.hpp>
#include <data/settings.hpp>
#include <data/format/formats.hpp>
#include <gui/set/window.hpp>
#include <gui/symbol/window.hpp>
// ----------------------------------------------------------------------------- : Main function/class
@@ -30,8 +35,10 @@ IMPLEMENT_APP(MSE)
bool MSE::OnInit() {
wxInitAllImageHandlers();
//initFileFilters()
Window* wnd = new SymbolWindow(0);
initFileFormats();
settings.read();
//Window* wnd = new SymbolWindow(nullptr);
Window* wnd = new SetWindow(nullptr, new_shared1<Set>(Game::byName(_("magic"))));
wnd->Show();
return true;
}
@@ -39,7 +46,7 @@ bool MSE::OnInit() {
// ----------------------------------------------------------------------------- : Exit
int MSE::OnExit() {
// settings.write();
settings.write();
return 0;
}