Commit c4bd38db authored by a b's avatar a b
Browse files

Mac fixes

parent b33b3778
TEMPLATE = app TEMPLATE = app
TARGET = TARGET = cockatrice
DEPENDPATH += . src ../common DEPENDPATH += . src ../common
INCLUDEPATH += . src ../common INCLUDEPATH += . src ../common
MOC_DIR = build MOC_DIR = build
...@@ -202,6 +202,6 @@ win32 { ...@@ -202,6 +202,6 @@ win32 {
} }
macx { macx {
ICON = resources/appicon.icns ICON = resources/appicon.icns
CONFIG += x86 ppc CONFIG += x86_64 release
LIBS += -bind_at_load LIBS += -bind_at_load
} }
...@@ -238,7 +238,7 @@ void PictureLoadingThread::run() ...@@ -238,7 +238,7 @@ void PictureLoadingThread::run()
pictureLoader->setPicsPath(picsPath); pictureLoader->setPicsPath(picsPath);
pictureLoader->setPicDownload(picDownload); pictureLoader->setPicDownload(picDownload);
usleep(100); usleep(10000);
initWaitCondition.wakeAll(); initWaitCondition.wakeAll();
exec(); exec();
...@@ -715,4 +715,4 @@ void CardDatabase::picsPathChanged() ...@@ -715,4 +715,4 @@ void CardDatabase::picsPathChanged()
{ {
loadingThread->getPictureLoader()->setPicsPath(settingsCache->getPicsPath()); loadingThread->getPictureLoader()->setPicsPath(settingsCache->getPicsPath());
clearPixmapCache(); clearPixmapCache();
} }
\ No newline at end of file
...@@ -73,11 +73,11 @@ int main(int argc, char *argv[]) ...@@ -73,11 +73,11 @@ int main(int argc, char *argv[])
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
QDir baseDir(app.applicationDirPath()); QDir baseDir(app.applicationDirPath());
baseDir.cdUp(); baseDir.cdUp();
baseDir.cdUp();
baseDir.cdUp();
QDir pluginsDir = baseDir; QDir pluginsDir = baseDir;
pluginsDir.cd("PlugIns"); pluginsDir.cd("PlugIns");
app.addLibraryPath(pluginsDir.absolutePath()); app.addLibraryPath(pluginsDir.absolutePath());
baseDir.cdUp();
baseDir.cdUp();
#endif #endif
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
app.addLibraryPath(app.applicationDirPath() + "/plugins"); app.addLibraryPath(app.applicationDirPath() + "/plugins");
...@@ -116,8 +116,10 @@ int main(int argc, char *argv[]) ...@@ -116,8 +116,10 @@ int main(int argc, char *argv[])
} }
if (startMainProgram) { if (startMainProgram) {
qDebug("main(): starting main program");
soundEngine = new SoundEngine; soundEngine = new SoundEngine;
qDebug("main(): SoundEngine constructor finished");
MainWindow ui; MainWindow ui;
qDebug("main(): MainWindow constructor finished"); qDebug("main(): MainWindow constructor finished");
...@@ -129,7 +131,8 @@ int main(int argc, char *argv[]) ...@@ -129,7 +131,8 @@ int main(int argc, char *argv[])
app.exec(); app.exec();
} }
qDebug("Event loop finished, terminating...");
delete db; delete db;
delete settingsCache; delete settingsCache;
delete rng; delete rng;
......
...@@ -395,7 +395,7 @@ void WndDeckEditor::actPrintDeck() ...@@ -395,7 +395,7 @@ void WndDeckEditor::actPrintDeck()
void WndDeckEditor::actEditSets() void WndDeckEditor::actEditSets()
{ {
WndSets *w = new WndSets(this); WndSets *w = new WndSets;
w->setWindowModality(Qt::WindowModal); w->setWindowModality(Qt::WindowModal);
w->show(); w->show();
} }
......
...@@ -10,6 +10,7 @@ HEADERS += src/oracleimporter.h src/window_main.h ../cockatrice/src/carddatabase ...@@ -10,6 +10,7 @@ HEADERS += src/oracleimporter.h src/window_main.h ../cockatrice/src/carddatabase
SOURCES += src/main.cpp src/oracleimporter.cpp src/window_main.cpp ../cockatrice/src/carddatabase.cpp ../cockatrice/src/settingscache.cpp SOURCES += src/main.cpp src/oracleimporter.cpp src/window_main.cpp ../cockatrice/src/carddatabase.cpp ../cockatrice/src/settingscache.cpp
macx { macx {
CONFIG += x86 ppc # CONFIG += x86 ppc
CONFIG += x86_64 release
LIBS += -bind_at_load LIBS += -bind_at_load
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment