fix xmrig bundling issues
This commit is contained in:
@@ -509,6 +509,18 @@ std::string getXmrigPath()
|
||||
return xmrigName;
|
||||
}
|
||||
|
||||
// Check alongside the wallet executable (zip / AppImage distributions)
|
||||
{
|
||||
std::string exeDir = util::Platform::getExecutableDirectory();
|
||||
if (!exeDir.empty()) {
|
||||
std::string exeDirPath = exeDir + "/" + xmrigName;
|
||||
if (std::filesystem::exists(exeDirPath)) {
|
||||
DEBUG_LOGF("[INFO] getXmrigPath: found alongside wallet at %s\n", exeDirPath.c_str());
|
||||
return exeDirPath;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check development paths
|
||||
#ifdef _WIN32
|
||||
// Not applicable for cross-compiled Windows builds
|
||||
|
||||
Reference in New Issue
Block a user