+#include <msp/core/application.h>
#include "dir.h"
using namespace std;
return ".";
}
-Path get_user_data_dir(const string &appname)
+Path get_user_data_dir(const string &)
{
+ return get_user_data_dir();
+}
+
+Path get_user_data_dir()
+{
+ const string &appname = Application::get_name();
+ if(appname.empty())
+ throw logic_error("no application name");
+
char buf[1024];
unsigned len = get_application_support_dir(buf, sizeof(buf));
if(len)