mirror of https://github.com/BOINC/boinc.git
default screensaver: fix build breaks caused by code cleanup above
svn path=/trunk/boinc/; revision=24656
This commit is contained in:
parent
95a7a3d424
commit
7b5d9cf07c
|
@ -496,19 +496,19 @@ int main(int argc, char** argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
long brandId;
|
long brandId = BOINC_BRAND_ID;
|
||||||
// For GridRepublic or CharityEngine, the installer put a branding file in our data directory
|
// For GridRepublic or CharityEngine, the installer put a branding file in our data directory
|
||||||
FILE *f = fopen("/Library/Application Support/BOINC Data/Branding", "r");
|
FILE *f = fopen("/Library/Application Support/BOINC Data/Branding", "r");
|
||||||
if (f) {
|
if (f) {
|
||||||
fscanf(f, "BrandId=%ld\n", &brandId);
|
fscanf(f, "BrandId=%ld\n", &brandId);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
if (brandId == GRIDREPUBLIC_BRAND_ID) {
|
||||||
if (brandId == GRIDREPUBLIC_BRAND_ID) {
|
brand_name = "GridRepublic";
|
||||||
brand_name = "GridRepublic";
|
logo_file = "gridrepublic_ss_logo.jpg";
|
||||||
logo_file = "gridrepublic_ss_logo.jpg";
|
} else if (brandId == CHARITYENGINE_BRAND_ID) {
|
||||||
} else if (brandId == CHARITYENGINE_BRAND_ID) {
|
brand_name = "Charity Engine";
|
||||||
brand_name = "Charity Engine";
|
logo_file = "CE_ss_logo.jpg";
|
||||||
logo_file = "CE_ss_logo.jpg";
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue