From f982df440418abaeb5b14ea4f75c7b52fb68640d Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 11 Nov 2010 11:55:43 +0000 Subject: [PATCH] Mac SS: Minor tweak for use in debugging svn path=/trunk/boinc/; revision=22678 --- checkin_notes | 6 ++++++ clientscr/mac_saver_module.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index ad1fccbd3f..1e1ddb6292 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8065,3 +8065,9 @@ David 10 Nov 2010 setup_project.py sched/ sample_work_generator.cpp + +Charlie 11 Nov 2010 + - Mac SS: Minor tweak for use in debugging. + + clientscr/ + mac_saver_module.cpp diff --git a/clientscr/mac_saver_module.cpp b/clientscr/mac_saver_module.cpp index 117bad806e..0f7753cd70 100644 --- a/clientscr/mac_saver_module.cpp +++ b/clientscr/mac_saver_module.cpp @@ -341,8 +341,13 @@ OSStatus CScreensaver::initBOINCApp() { if (++retryCount > 3) // Limit to 3 relaunches to prevent thrashing return -1; +#ifdef _DEBUG + err = -1; +#else err = GetpathToBOINCManagerApp(boincPath, sizeof(boincPath)); - if (err) { // If we couldn't find BOINCManager.app, try default path +#endif + if (err) + { // If we couldn't find BOINCManager.app, try default path strcpy(boincPath, "/Applications/"); if (brandId) strcat(boincPath, m_BrandText);