Imported existing sources

This commit is contained in:
0xFEEDC0DE64
2018-09-15 20:51:15 +02:00
parent 09639315d6
commit 2a15afd678
17 changed files with 871 additions and 0 deletions

25
debug.cpp Normal file
View File

@@ -0,0 +1,25 @@
#include "debug.h"
#include <QFile>
#include <QTextStream>
#include <QDebug>
#include <QString>
QFile file("log.txt");
QTextStream textStream(&file);
bool initDebug()
{
if(!file.open(QIODevice::Truncate | QIODevice::WriteOnly | QIODevice::Text))
{
qWarning() << file.errorString();
return false;
}
return true;
}
void debug(const QString &line)
{
textStream << line << endl;
}