Added skeleton for system cursors configuration
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3972 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#include <ColorUtils.h>
|
||||
#include <InterfaceDefs.h>
|
||||
#include "ColorWhichItem.h"
|
||||
#include "ServerConfig.h"
|
||||
|
||||
//#define DEBUG_COLORSET
|
||||
|
||||
@@ -575,7 +576,7 @@ void APRView::SaveSettings(void)
|
||||
// Save the current GUI color settings to the GUI colors file in the
|
||||
// path specified in defs.h
|
||||
|
||||
BString path(SETTINGS_DIR);
|
||||
BString path(SERVER_SETTINGS_DIR);
|
||||
path+=COLOR_SETTINGS_NAME;
|
||||
#ifdef DEBUG_COLORSET
|
||||
printf("SaveSettings: %s\n",path.String());
|
||||
@@ -599,15 +600,15 @@ printf("Loading settings from disk\n");
|
||||
settings.MakeEmpty();
|
||||
|
||||
BDirectory dir,newdir;
|
||||
if(dir.SetTo(SETTINGS_DIR)==B_ENTRY_NOT_FOUND)
|
||||
if(dir.SetTo(SERVER_SETTINGS_DIR)==B_ENTRY_NOT_FOUND)
|
||||
{
|
||||
#ifdef DEBUG_COLORSET
|
||||
printf("Color set folder not found. Creating %s\n",SETTINGS_DIR);
|
||||
printf("Color set folder not found. Creating %s\n",SERVER_SETTINGS_DIR);
|
||||
#endif
|
||||
create_directory(SETTINGS_DIR,0777);
|
||||
create_directory(SERVER_SETTINGS_DIR,0777);
|
||||
}
|
||||
|
||||
BString path(SETTINGS_DIR);
|
||||
BString path(SERVER_SETTINGS_DIR);
|
||||
path+=COLOR_SETTINGS_NAME;
|
||||
BFile file(path.String(),B_READ_ONLY);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user