2015-12-01 10:24:51 -06:00
|
|
|
#include <QApplication>
|
2016-06-29 19:37:09 -05:00
|
|
|
#include <QSettings>
|
|
|
|
#include <QString>
|
2015-12-01 10:24:51 -06:00
|
|
|
|
|
|
|
#include "binaryfile.h"
|
|
|
|
#include "genericfile.h"
|
|
|
|
#include "diskfile.h"
|
|
|
|
#include "catalogsector.h"
|
|
|
|
#include "applesoftfile.h"
|
2016-10-28 00:48:18 -05:00
|
|
|
#include "DiskExplorer.h"
|
2015-12-01 10:24:51 -06:00
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
QApplication a(argc, argv);
|
2016-06-29 19:37:09 -05:00
|
|
|
QCoreApplication::setOrganizationName("AppleSAWS");
|
|
|
|
QCoreApplication::setOrganizationDomain("ml.com");
|
|
|
|
QCoreApplication::setApplicationName("AppleSAWS");
|
2016-10-28 00:48:18 -05:00
|
|
|
DiskExplorer w;
|
2016-06-29 19:37:09 -05:00
|
|
|
QSettings settings;
|
|
|
|
QString lastOpened = settings.value("lastOpened").toString();
|
|
|
|
if (!lastOpened.isEmpty())
|
|
|
|
{
|
|
|
|
w.loadDiskFile(lastOpened);
|
|
|
|
}
|
2015-12-01 10:24:51 -06:00
|
|
|
w.show();
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
|
|
|
|
}
|
|
|
|
|