ES-DE/src/platform.cpp

16 lines
213 B
C++
Raw Normal View History

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