1
0
mirror of https://github.com/samstyle/Xpeccy.git synced 2025-04-19 00:04:05 +03:00

build 20140402

This commit is contained in:
samstyle 2014-04-02 21:36:04 +04:00
parent 42ed0762e8
commit 335da47c2b
3 changed files with 11 additions and 13 deletions

View File

@ -1,4 +1,4 @@
Copyright (c) 2009-2012, SAM style
Copyright (c) 2009-..., SAM style
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,4 +1,4 @@
Copyright (c) 2009-2012, SAM style
Copyright (c) 2009-..., SAM style
Данная лицензия разрешает лицам, получившим копию данного программного обеспечения
и сопутствующей документации (в дальнейшем именуемыми «Программное Обеспечение»),

View File

@ -1,6 +1,7 @@
#include <QApplication>
#include <QMessageBox>
#include <QTimer>
#include <getopt.h>
#include "xcore/xcore.h"
#include "xgui/xgui.h"
@ -77,16 +78,17 @@ int main(int ac,char** av) {
QApplication app(ac,av,true);
char* profName = NULL;
try {
std::vector<char*> files;
int i;
bool dev = false;
initPaths();
addProfile("default","xpeccy.conf");
setProfile("default");
for (int i = 1; i < ac; i++) {
if (strcmp(av[i],"-d") == 0) dev = true;
if ((strcmp(av[i],"-p") == 0) && (i < (ac - 1))) {
profName = av[i + 1];
i++;
while ((i = getopt(ac,av,"-dp:")) != -1) {
switch(i) {
case 'd' : dev = true; break;
case 'p' : profName = optarg; break;
case 1: files.push_back(optarg); break;
}
}
if (dev) {
@ -122,12 +124,8 @@ int main(int ac,char** av) {
emulUpdateWindow();
zxReset(zx,RES_DEFAULT);
for(i=1;i<ac;i++) {
if (strcmp(av[i],"-p") == 0) { // skip -p profname
i++;
} else {
if (strlen(av[i]) > 0) loadFile(zx,av[i],FT_ALL,0);
}
for (i = 0; i < files.size(); i++) {
if (strlen(files[i]) > 0) loadFile(zx,files[i],FT_ALL,0);
}
#ifdef HAVESDL