Sha256: f7e2b1c532af5bdfaab0c2f3c945da23e5efb4b0fa409ba2fba8e463938cc0ba
Contents?: true
Size: 698 Bytes
Versions: 15
Compression:
Stored size: 698 Bytes
Contents
#include <Gosu/Directories.hpp> #include <Gosu/Utility.hpp> #include <cassert> #include <sys/types.h> #include <unistd.h> #include <pwd.h> namespace { std::wstring homeDir() { passwd* pwd = getpwuid(geteuid()); assert(pwd); return Gosu::widen(pwd->pw_dir); } } void Gosu::useResourceDirectory() { // Do nothing - the current directory HAS to be correct on Linux. } std::wstring Gosu::resourcePrefix() { return std::wstring(); } std::wstring Gosu::sharedResourcePrefix() { return std::wstring(); } std::wstring Gosu::userSettingsPrefix() { return homeDir() + L"/."; } std::wstring Gosu::userDocsPrefix() { return homeDir() + L"/"; }
Version data entries
15 entries across 15 versions & 1 rubygems