mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-25 20:07:51 +02:00
CI bugfix and refactoring
This commit is contained in:
@ -102,7 +102,7 @@ static void maximized_callback(GLFWwindow* window, int n) {
|
||||
int sdrpp_main(int argc, char *argv[]) {
|
||||
spdlog::info("SDR++ v" VERSION_STR);
|
||||
|
||||
#ifdef MACOS_DOTAPP
|
||||
#ifdef IS_MACOS_BUNDLE
|
||||
// If this is a MacOS .app, CD to the correct directory
|
||||
auto execPath = std::filesystem::absolute(argv[0]);
|
||||
chdir(execPath.parent_path().string().c_str());
|
||||
@ -248,7 +248,7 @@ int sdrpp_main(int argc, char *argv[]) {
|
||||
#if defined(_WIN32)
|
||||
defConfig["modulesDirectory"] = "./modules";
|
||||
defConfig["resourcesDirectory"] = "./res";
|
||||
#elif defined(MACOS_DOTAPP)
|
||||
#elif defined(IS_MACOS_BUNDLE)
|
||||
defConfig["modulesDirectory"] = "../Plugins";
|
||||
defConfig["resourcesDirectory"] = "../Resources";
|
||||
#else
|
||||
|
@ -9,7 +9,7 @@ namespace options {
|
||||
#if defined(_WIN32)
|
||||
opts.root = ".";
|
||||
opts.showConsole = false;
|
||||
#elif defined(MACOS_DOTAPP)
|
||||
#elif defined(IS_MACOS_BUNDLE)
|
||||
std::string homedir = getenv("HOME");
|
||||
opts.root = homedir + "/Library/Application Support/sdrpp";
|
||||
#else
|
||||
|
Reference in New Issue
Block a user