Sha256: d0b2014aea5def77c6ed83d52bc197ff1967b035347e1ffd32f977e6937b0b3f
Contents?: true
Size: 723 Bytes
Versions: 26
Compression:
Stored size: 723 Bytes
Contents
#include <Gosu/Platform.hpp> #if defined(GOSU_IS_X) #include <Gosu/Directories.hpp> #include <Gosu/Utility.hpp> #include <cassert> #include <pwd.h> #include <sys/types.h> #include <unistd.h> using namespace std; static string home_dir() { passwd* pwd = getpwuid(geteuid()); assert (pwd && pwd->pw_dir); return pwd->pw_dir; } void Gosu::use_resource_directory() { // Do nothing, we expect the user to have the correct cwd on Linux. } string Gosu::resource_prefix() { return string(); } string Gosu::shared_resource_prefix() { return string(); } string Gosu::user_settings_prefix() { return home_dir() + "/."; } string Gosu::user_documents_prefix() { return home_dir() + "/"; } #endif
Version data entries
26 entries across 26 versions & 1 rubygems