mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
+11
-4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user