MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_user_home_dir

Function get_user_home_dir

utility/glob.cpp:399–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399String get_user_home_dir() {
400 auto ident = OS::get_singleton()->get_identifier();
401 if (ident == "web") {
402 return OS::get_singleton()->get_user_data_dir();
403 } else if (ident == "windows") {
404 return OS::get_singleton()->get_environment("USERPROFILE");
405 }
406 return OS::get_singleton()->get_environment("HOME");
407}
408
409String expand_tilde(String path) {
410 if (path.is_empty() || path[0] != '~') {

Callers 1

expand_tildeFunction · 0.85

Calls 1

get_identifierMethod · 0.80

Tested by

no test coverage detected