7c469e5de5e52396fb3f4d3b460bc2ee97000f1a.svn-base 529 B

12345678910111213141516171819202122232425
  1. #include <QCoreApplication>
  2. #include <QString>
  3. #include "ytcore.h"
  4. bool myDebug;
  5. bool myLog;
  6. int main(int argc, char *argv[])
  7. {
  8. QCoreApplication a(argc, argv);
  9. BpCore *bpCore = new BpCore(0);
  10. myDebug = false;
  11. myLog = false;
  12. if(argc>1){
  13. for(int i=1;i<argc;i++)
  14. {
  15. if(QString(argv[i]).compare("-DBG")==0)
  16. myDebug = true;
  17. else if(QString(argv[i]).compare("-LOG")==0)
  18. myLog = true;
  19. }
  20. }
  21. bpCore->run();
  22. return a.exec();
  23. }