Skip to content

Commit f5e7c46

Browse files
committed
Some clean up
1 parent 61aa7ac commit f5e7c46

File tree

1 file changed

+7
-39
lines changed

1 file changed

+7
-39
lines changed

main.cpp

Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818

1919
#include "savestate2snesw.h"
20-
#include "trainingtimer.h"
20+
//#include "trainingtimer.h"
2121
#include <QApplication>
2222
#include <QMessageBox>
2323
#include "firsttimedialog.h"
24-
#include "shortcuteditdialog.h"
24+
//#include "shortcuteditdialog.h"
2525

2626
static QTextStream logfile;
2727
static QTextStream lowlogfile;
@@ -64,15 +64,6 @@ void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QS
6464
}
6565
*log << "\n";
6666
log->flush();
67-
#ifdef QT_DEBUG
68-
if (QString(context.category) == "Telnet")
69-
{
70-
//cout << "Writing to lowlevelfile";
71-
lowlogfile << logString.arg("MSG");
72-
lowlogfile << "\n";
73-
lowlogfile.flush();
74-
}
75-
#endif
7667
if (log != &lowlogfile)
7768
{
7869
//cout << logString;
@@ -103,15 +94,15 @@ int main(int argc, char *argv[])
10394
QTranslator translator;
10495
QString locale = QLocale::system().name().split('_').first();
10596
translator.load(a.applicationDirPath() + "/i18n/savestate2snes_" + locale + ".qm");
106-
// This is only defined in the PRO file
97+
/*// This is only defined in the PRO file
10798
#ifdef GIT_TAG_VERSION
10899
QString plop(GIT_TAG_VERSION);
109100
plop.remove(0, 1); // Remove the v
110101
QApplication::setApplicationVersion(QVersionNumber::fromString(plop).toString());
111-
#else
112-
QApplication::setApplicationVersion("0.99");
113-
#endif
114-
QLoggingCategory::setFilterRules("EmuNWAccessClient.debug=true\nUSB2SNES.debug=false");
102+
#else*/
103+
QApplication::setApplicationVersion("0.9");
104+
//#endif
105+
QLoggingCategory::setFilterRules("EmuNWAccessClient.debug=false\nUSB2SNES.debug=false");
115106
a.installTranslator(&translator);
116107
if (!settings.contains("lastSaveStateDir"))
117108
{
@@ -121,30 +112,7 @@ int main(int argc, char *argv[])
121112
settings.setValue("lastSaveStateDir", diag.savePath);
122113
settings.setValue("mode", diag.selectedMode());
123114
}
124-
/*USB2snes* usb2snes = new USB2snes();
125-
QObject::connect(usb2snes, &USB2snes::stateChanged, [=]{
126-
if (usb2snes->state() == USB2snes::Ready)
127-
{
128-
QByteArray prev;
129-
while (true)
130-
{
131-
QByteArray b = usb2snes->getAddress(0xFE1000, 0x16);
132-
if (b != prev)
133-
{
134-
qDebug() << "changed" << b.toHex(' ');
135-
if (b.at(0xC) == 0xF)
136-
qDebug() << "State ended?";
137-
}
138-
139-
prev = b;
140-
}
141-
}
142-
;});
143-
usb2snes->connect();*/
144115
Savestate2snesw w;
145116
w.show();
146-
/*TrainingTimer pt;
147-
pt.show();*/
148-
149117
return a.exec();
150118
}

0 commit comments

Comments
 (0)