2021-02-19 23:42:02 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
* AppleSAWS - The Apple Software Analysis WorkShop *
|
|
|
|
* Copyright (C) 2015-2021 Mark D. Long *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2021-01-22 21:45:10 +00:00
|
|
|
#include <QApplication>
|
|
|
|
#include <QSettings>
|
|
|
|
#include <QString>
|
2021-01-24 22:07:30 +00:00
|
|
|
#include <QFontDatabase>
|
|
|
|
#include <QDebug>
|
2021-01-22 21:45:10 +00:00
|
|
|
|
|
|
|
#include "binaryfile.h"
|
|
|
|
#include "genericfile.h"
|
2021-02-11 16:14:19 +00:00
|
|
|
#include "dos33diskimage.h"
|
2021-01-22 21:45:10 +00:00
|
|
|
#include "catalogsector.h"
|
|
|
|
#include "applesoftfile.h"
|
2021-01-30 20:02:10 +00:00
|
|
|
#include "startupdialog.h"
|
2021-01-22 21:45:10 +00:00
|
|
|
|
2021-03-12 18:04:58 +00:00
|
|
|
|
2021-01-22 21:45:10 +00:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
2021-03-12 18:04:58 +00:00
|
|
|
|
2021-02-19 20:57:05 +00:00
|
|
|
|
2021-01-22 21:45:10 +00:00
|
|
|
QCoreApplication::setOrganizationName("LydianScaleSoftware");
|
|
|
|
QCoreApplication::setOrganizationDomain("lydianscale.com");
|
|
|
|
QCoreApplication::setApplicationName("AppleSAWS");
|
2021-01-24 22:07:30 +00:00
|
|
|
|
2021-03-13 19:05:32 +00:00
|
|
|
QApplication a(argc, argv);
|
|
|
|
|
2021-02-03 19:11:56 +00:00
|
|
|
auto x = QFontDatabase::addApplicationFont(":/fonts/Print_Char_21.ttf");
|
|
|
|
auto y = QFontDatabase::addApplicationFont(":/fonts/PR_Number_3.ttf");
|
2021-01-30 20:02:10 +00:00
|
|
|
|
2021-02-03 19:11:56 +00:00
|
|
|
if (x < 0) { qWarning("Could not load Print_Char_21.ttf font."); }
|
|
|
|
if (y < 0) { qWarning("Could not load PR_Number_3.ttf font."); }
|
2021-01-30 20:02:10 +00:00
|
|
|
|
|
|
|
StartupDialog w;
|
2021-01-22 21:45:10 +00:00
|
|
|
w.show();
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
}
|
|
|
|
|