mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
16 lines
213 B
C++
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
|
|
}
|