From 76381d93e6199b4db5584c2bf29dcb7fd4fa296b Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 11 Nov 2010 11:58:41 +0000 Subject: [PATCH] Mac SS: Minor tweak for use in debugging svn path=/branches/boinc_core_release_6_12/; revision=22679 --- 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 d609ff3a58..e75c89fc0e 100644 --- a/checkin_notes +++ b/checkin_notes @@ -7705,3 +7705,9 @@ Rom 08 Nov 2010 / configure.ac version.h + +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);