fs/StandardDirectory: add GetUserCacheDir()
Move code from CreateConfiguredDatabase() and add XDG support. This implements an automatic Linux fallback for the setting "db_file" if none was specified.
This commit is contained in:
@@ -33,6 +33,13 @@ AllocatedPath GetUserConfigDir();
|
||||
*/
|
||||
AllocatedPath GetUserMusicDir();
|
||||
|
||||
/**
|
||||
* Obtains cache directory for the current user.
|
||||
*/
|
||||
gcc_pure
|
||||
AllocatedPath
|
||||
GetUserCacheDir();
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user