ES-DE/src/platform.cpp
2013-05-13 15:06:18 -05:00

16 lines
213 B
C++

#include "platform.h"
#include <stdlib.h>
std::string getHomePath()
{
#ifdef _WIN32
return "C:\\";
#else
const char* home = getenv("HOME");
if(home == NULL)
return "";
else
return home;
#endif
}