build fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15960 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,11 +4,12 @@
|
|||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
* Michael Phipps
|
* Michael Phipps
|
||||||
* Jérôme Duval, [email protected]
|
* Jérôme Duval, [email protected]
|
||||||
*/
|
*/
|
||||||
|
#include <FindDirectory.h>
|
||||||
#include <Screen.h>
|
#include <Screen.h>
|
||||||
#include <ScreenSaver.h>
|
#include <ScreenSaver.h>
|
||||||
#include <FindDirectory.h>
|
#include <View.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "ScreenSaverThread.h"
|
#include "ScreenSaverThread.h"
|
||||||
#include "ScreenSaverPrefs.h"
|
#include "ScreenSaverPrefs.h"
|
||||||
@@ -85,21 +86,21 @@ ScreenSaverThread::LoadAddOn()
|
|||||||
unload_add_on(fAddonImage);
|
unload_add_on(fAddonImage);
|
||||||
}
|
}
|
||||||
char temp[B_PATH_NAME_LENGTH];
|
char temp[B_PATH_NAME_LENGTH];
|
||||||
if (B_OK==find_directory(B_BEOS_ADDONS_DIRECTORY,NULL,false,temp,B_PATH_NAME_LENGTH)) {
|
if (B_OK==find_directory(B_BEOS_ADDONS_DIRECTORY, 0, false, temp, B_PATH_NAME_LENGTH)) {
|
||||||
sprintf (temp,"%s/Screen Savers/%s", temp, fPref->ModuleName());
|
sprintf (temp,"%s/Screen Savers/%s", temp, fPref->ModuleName());
|
||||||
fAddonImage = load_add_on(temp);
|
fAddonImage = load_add_on(temp);
|
||||||
}
|
}
|
||||||
if (fAddonImage<0) {
|
if (fAddonImage<0) {
|
||||||
//printf ("Unable to open add-on: %s\n",temp);
|
//printf ("Unable to open add-on: %s\n",temp);
|
||||||
sprintf (temp,"%s/Screen Savers/%s", temp, fPref->ModuleName());
|
sprintf (temp,"%s/Screen Savers/%s", temp, fPref->ModuleName());
|
||||||
if (B_OK==find_directory(B_COMMON_ADDONS_DIRECTORY,NULL,false,temp,B_PATH_NAME_LENGTH)) {
|
if (B_OK==find_directory(B_COMMON_ADDONS_DIRECTORY, 0, false, temp, B_PATH_NAME_LENGTH)) {
|
||||||
sprintf (temp,"%s/Screen Savers/%s", temp, fPref->ModuleName());
|
sprintf (temp,"%s/Screen Savers/%s", temp, fPref->ModuleName());
|
||||||
fAddonImage = load_add_on(temp);
|
fAddonImage = load_add_on(temp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fAddonImage<0) {
|
if (fAddonImage<0) {
|
||||||
//printf ("Unable to open add-on: %s\n",temp);
|
//printf ("Unable to open add-on: %s\n",temp);
|
||||||
if (B_OK==find_directory(B_USER_ADDONS_DIRECTORY,NULL,false,temp,B_PATH_NAME_LENGTH)) {
|
if (B_OK==find_directory(B_USER_ADDONS_DIRECTORY, 0, false, temp, B_PATH_NAME_LENGTH)) {
|
||||||
sprintf (temp,"%s/Screen Savers/%s", temp, fPref->ModuleName());
|
sprintf (temp,"%s/Screen Savers/%s", temp, fPref->ModuleName());
|
||||||
fAddonImage = load_add_on(temp);
|
fAddonImage = load_add_on(temp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user