Function to get the home directory of the current user
| 826 | |
| 827 | /// Function to get the home directory of the current user |
| 828 | const char* getHomeDirectory() { |
| 829 | #ifdef _WIN32 |
| 830 | return getenv("USERPROFILE"); |
| 831 | #else |
| 832 | return getenv("HOME"); |
| 833 | #endif |
| 834 | } |
| 835 | |
| 836 | /// Does the file exist |
| 837 | BOOL file_exists(const std::string& path) { |
no outgoing calls
no test coverage detected