- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Tools/Viewer/Graphics/src/Graphics_main.cpp
r20 r26 18 18 if(argc>2){ 19 19 cout << "error : argument must be a file name or nothing" << endl; 20 cout << "usage : Viewer [file]" << endl; 20 21 return 0; 21 22 } 22 23 23 24 Parse *par = new Parse(); 24 25 25 26 26 27 QApplication *a=new QApplication (argc,argv); 27 28 28 29 if(par->open_file(argv[1] )==-1){29 if(argc == 2){ 30 if(par->open_file(argv[1],0)==-1){ 30 31 cout << "file doesn't exist or is not a valid format" << endl; 31 32 exit(1);
Note: See TracChangeset
for help on using the changeset viewer.