Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a shell parameter to load an external wire.txt

  • Loading branch information...
commit 377a6f0ee2fccec39652708711cb77a895f701d8 1 parent c8ff39c
@wzman wzman authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 altona_wz4/altona/main/wz4lib/gui.cpp
View
8 altona_wz4/altona/main/wz4lib/gui.cpp
@@ -283,7 +283,13 @@ void MainWindow::MainInit()
ExtendWireRegister();
- sWire->ProcessText(WireTXT,L"werkkzeug4.wire.txt");
+ // if -w shell parameter is set, load external wire.txt else load internal default wire.txt
+ const sChar *wirefilename = sGetShellParameter(L"w",0);
+ if(wirefilename && sCreateFile(wirefilename,sFA_READ) )
+ sWire->ProcessFile(wirefilename);
+ else
+ sWire->ProcessText(WireTXT,L"werkkzeug4.wire.txt");
+
ExtendWireProcess();
sWire->ProcessEnd();
Please sign in to comment.
Something went wrong with that request. Please try again.