src/fileio.cpp
changeset 8273 1d95cbda404b
parent 8214 971f861d5543
child 8374 7a1b6c89cb89
equal deleted inserted replaced
8272:6f3688edcbf4 8273:1d95cbda404b
   644 	snprintf(tmp, MAX_PATH, "%s" PATHSEP "%s", homedir, PERSONAL_DIR);
   644 	snprintf(tmp, MAX_PATH, "%s" PATHSEP "%s", homedir, PERSONAL_DIR);
   645 	AppendPathSeparator(tmp, MAX_PATH);
   645 	AppendPathSeparator(tmp, MAX_PATH);
   646 
   646 
   647 	_searchpaths[SP_PERSONAL_DIR] = strdup(tmp);
   647 	_searchpaths[SP_PERSONAL_DIR] = strdup(tmp);
   648 #endif
   648 #endif
       
   649 
       
   650 #if defined(WITH_SHARED_DIR)
       
   651 	snprintf(tmp, MAX_PATH, "%s", SHARED_DIR);
       
   652 	AppendPathSeparator(tmp, MAX_PATH);
       
   653 	_searchpaths[SP_SHARED_DIR] = strdup(tmp);
       
   654 #else
   649 	_searchpaths[SP_SHARED_DIR] = NULL;
   655 	_searchpaths[SP_SHARED_DIR] = NULL;
       
   656 #endif
   650 
   657 
   651 #if defined(__MORPHOS__) || defined(__AMIGA__)
   658 #if defined(__MORPHOS__) || defined(__AMIGA__)
   652 	_searchpaths[SP_WORKING_DIR] = NULL;
   659 	_searchpaths[SP_WORKING_DIR] = NULL;
   653 #else
   660 #else
   654 	getcwd(tmp, MAX_PATH);
   661 	getcwd(tmp, MAX_PATH);