mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
MSE can now save cards in separate files (needs manual config editing still).
Trailing slashes are stripped from commandline arguments (because directory.mse-set/ should be accepted) git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1386 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+2
-2
@@ -93,9 +93,9 @@ int MSE::OnRun() {
|
||||
// interpret command line
|
||||
if (argc > 1) {
|
||||
try {
|
||||
// Command line argument, find its extension
|
||||
String arg = argv[1];
|
||||
wxFileName f(argv[1]);
|
||||
// Find the extension
|
||||
wxFileName f(arg.Mid(0,arg.find_last_not_of(_("\\/"))+1));
|
||||
if (f.GetExt() == _("mse-symbol")) {
|
||||
// Show the symbol editor
|
||||
Window* wnd = new SymbolWindow(nullptr, argv[1]);
|
||||
|
||||
Reference in New Issue
Block a user