Implement app.getHomeDir with app.getPath

This commit is contained in:
Cheng Zhao 2015-01-18 18:01:58 -08:00
parent d31df439c3
commit a988b48016
2 changed files with 5 additions and 9 deletions

View file

@ -67,6 +67,8 @@ int GetPathConstant(const std::string& name) {
return brightray::DIR_APP_DATA;
else if (name == "userData")
return brightray::DIR_USER_DATA;
else if (name == "home")
return base::DIR_HOME;
else
return -1;
}