- Added option -gui in comamd line to show the Pure Data GUI's
- Bugfix in initiatializinng the text subpatch
This commit is contained in:
parent
d1c4295692
commit
b877185c0d
8 changed files with 97 additions and 50 deletions
23
src/main.cpp
23
src/main.cpp
|
@ -19,6 +19,8 @@
|
|||
#include <QApplication>
|
||||
#include "libremediaserver.h"
|
||||
|
||||
#define VERSION "0.03-1";
|
||||
|
||||
// Handler for pipe the stderr to a log file
|
||||
|
||||
bool initMessageHandler = 0;
|
||||
|
@ -73,8 +75,27 @@ void MessageHandler(QtMsgType type, const char *msg)
|
|||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
QStringList args = app.arguments();
|
||||
if (args.size() > 1)
|
||||
{
|
||||
if (args.contains("-v") > 0)
|
||||
{
|
||||
qDebug() << "LibreMediaServer Version" << VERSION;
|
||||
app.exit();
|
||||
return 0;
|
||||
}
|
||||
if (args.contains("-h") > 0)
|
||||
{
|
||||
qDebug() << "LibreMediaServer Version" << VERSION;
|
||||
qDebug() << "Help";
|
||||
qDebug() << "-v Show the version and exits";
|
||||
qDebug() << "-gui show the Pure Data GUI's.";
|
||||
app.exit();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
qInstallMsgHandler(MessageHandler);
|
||||
libreMediaServer libreMediaServer;
|
||||
libreMediaServer libreMediaServer(args);
|
||||
libreMediaServer.show();
|
||||
return app.exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue