ES-DE/src/platform.cpp

15 lines
193 B
C++
Raw Normal View History

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