Private Member Functions | |
void | Paths (tArray< tString > &paths) const |
Definition at line 518 of file tDirectories.cpp.
Implements tPath.
Definition at line 522 of file tDirectories.cpp.
References tString::Len(), pos, tArray< T, MALLOC >::SetLen(), st_ConfigDir, st_DataDir, st_UserConfigDir, and st_UserDataDir.
00523 { 00524 paths.SetLen( 0 ); 00525 int pos = 0; 00526 00527 paths[ pos++ ] = st_DataDir + "/config"; 00528 00529 if ( st_ConfigDir.Len() > 1 ) 00530 { 00531 paths[ pos++ ] = st_ConfigDir; 00532 } 00533 00534 if ( st_UserDataDir.Len() > 1 ) 00535 { 00536 paths[ pos++ ] = st_UserDataDir + "/config"; 00537 } 00538 00539 if ( st_UserConfigDir.Len() > 1 ) 00540 { 00541 paths[ pos++ ] = st_UserConfigDir; 00542 } 00543 }