MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / FindUserHomeThroughUID

Function FindUserHomeThroughUID

Source/Common/Config.cpp:500–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498
499#ifndef _WIN32
500const char* FindUserHomeThroughUID() {
501 auto passwd = getpwuid(geteuid());
502 if (passwd) {
503 return passwd->pw_dir;
504 }
505 return nullptr;
506}
507
508const char* GetHomeDirectory() {
509 const char* HomeDir = getenv("HOME");

Callers 1

GetHomeDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected