2013-05-13 19:53:28 +00:00
|
|
|
#include "platform.h"
|
2013-05-13 20:06:18 +00:00
|
|
|
#include <stdlib.h>
|
2013-05-13 19:53:28 +00:00
|
|
|
|
|
|
|
std::string getHomePath()
|
|
|
|
{
|
|
|
|
#ifdef _WIN32
|
|
|
|
return "C:\\";
|
|
|
|
#else
|
|
|
|
const char* home = getenv("HOME");
|
|
|
|
if(home == NULL)
|
|
|
|
return "";
|
|
|
|
else
|
|
|
|
return home;
|
|
|
|
#endif
|
|
|
|
}
|