2 #include <msp/core/application.h>
13 if(SHGetFolderPath(0, CSIDL_PERSONAL, 0, 0, home)==S_OK)
18 Path get_user_data_dir()
20 const string &appname = Application::get_name();
22 throw logic_error("no application name");
24 char datadir[MAX_PATH];
25 if(SHGetFolderPath(0, CSIDL_LOCAL_APPDATA, 0, 0, datadir)==S_OK)
26 return Path(datadir)/appname;