|
|
@ -724,7 +724,7 @@ bool ConnectionLoader::verifyParams() { |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
// this is to support SD on mac in /Applications1
|
|
|
|
// this is to support SD on mac in /Applications
|
|
|
|
if( QFile( QDir("/Applications").filePath("silentdragon.app/Contents/MacOS/sapling-output.params") ).exists() && QFile( QDir("/Applications").filePath("./silentdragon.app/Contents/MacOS/sapling-spend.params") ).exists() ) { |
|
|
|
qDebug() << "Found params in /Applications/silentdragon.app/Contents/MacOS"; |
|
|
|
return true; |
|
|
@ -736,6 +736,18 @@ bool ConnectionLoader::verifyParams() { |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
// this is to support SDX on mac in /Applications
|
|
|
|
if( QFile( QDir("/Applications").filePath("silentdragonx.app/Contents/MacOS/sapling-output.params") ).exists() && QFile( QDir("/Applications").filePath("./silentdragonx.app/Contents/MacOS/sapling-spend.params") ).exists() ) { |
|
|
|
qDebug() << "Found params in /Applications/silentdragonx.app/Contents/MacOS"; |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
// this is to support SDX on mac inside a DMG
|
|
|
|
if( QFile( QDir("./").filePath("silentdragonx.app/Contents/MacOS/sapling-output.params") ).exists() && QFile( QDir("./").filePath("./silentdragonx.app/Contents/MacOS/sapling-spend.params") ).exists() ) { |
|
|
|
qDebug() << "Found params in ./silentdragonx.app/Contents/MacOS"; |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
if (QFile(paramsDir.filePath("sapling-output.params")).exists() && QFile(paramsDir.filePath("sapling-spend.params")).exists()) { |
|
|
|
qDebug() << "Found params in " << paramsDir; |
|
|
|
return true; |
|
|
|