Files
MI-38/s1000d/Converter14/main.cpp
2022-07-04 13:15:35 +03:00

27 lines
474 B
C++

#include "editormainwindow.h"
#include "console.h"
#include <QApplication>
#ifdef _WIN32
#include <windows.h>
#endif
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
setlocale(LC_ALL,"Russian");
if(argc == 1)
{
#ifdef _WIN32
ShowWindow(GetConsoleWindow(), 0);
#endif
EditorMainWindow w;
w.show();
return a.exec();
}
else
{
console c;
c.exec(argc, argv);
return 0;
}
}