mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
command line argument support
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@167 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -26,8 +26,11 @@ SymbolWindow::SymbolWindow(Window* parent) {
|
||||
}
|
||||
|
||||
SymbolWindow::SymbolWindow(Window* parent, const String& filename) {
|
||||
// TODO : open file
|
||||
init(parent, default_symbol());
|
||||
// open file
|
||||
Reader reader(filename);
|
||||
SymbolP symbol;
|
||||
reader.handle(symbol);
|
||||
init(parent, symbol);
|
||||
}
|
||||
|
||||
SymbolWindow::SymbolWindow(Window* parent, const SymbolValueP& value, const SetP& set)
|
||||
|
||||
Reference in New Issue
Block a user