mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Porting: Refactor initalizePaths()
Add support for Solaris and HP-UX Search additional potential procfs locations for current executable
This commit is contained in:
parent
f1a41e4f77
commit
386d695330
3 changed files with 298 additions and 188 deletions
|
@ -377,7 +377,7 @@ const char *getVideoDriverName(irr::video::E_DRIVER_TYPE type);
|
|||
const char *getVideoDriverFriendlyName(irr::video::E_DRIVER_TYPE type);
|
||||
#endif
|
||||
|
||||
inline const char * getPlatformName()
|
||||
inline const char *getPlatformName()
|
||||
{
|
||||
return
|
||||
#if defined(ANDROID)
|
||||
|
@ -401,8 +401,12 @@ inline const char * getPlatformName()
|
|||
"AIX"
|
||||
#elif defined(__hpux)
|
||||
"HP-UX"
|
||||
#elif defined(__sun) && defined(__SVR4)
|
||||
"Solaris"
|
||||
#elif defined(__sun) || defined(sun)
|
||||
#if defined(__SVR4)
|
||||
"Solaris"
|
||||
#else
|
||||
"SunOS"
|
||||
#endif
|
||||
#elif defined(__CYGWIN__)
|
||||
"Cygwin"
|
||||
#elif defined(__unix__) || defined(__unix)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue