mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-17 04:25:39 +00:00
15 lines
193 B
C++
15 lines
193 B
C++
![]() |
#include "platform.h"
|
||
|
|
||
|
std::string getHomePath()
|
||
|
{
|
||
|
#ifdef _WIN32
|
||
|
return "C:\\";
|
||
|
#else
|
||
|
const char* home = getenv("HOME");
|
||
|
if(home == NULL)
|
||
|
return "";
|
||
|
else
|
||
|
return home;
|
||
|
#endif
|
||
|
}
|