Sha256: bb6ebe449e121c0d3c920a44e3e7ae99af422776b9220e3fd2b6514be5edac13

Contents?: true

Size: 1.26 KB

Versions: 15

Compression:

Stored size: 1.26 KB

Contents

//! \file Directories.hpp
//! Access to a small set of system paths.

#ifndef GOSU_DIRECTORIES_HPP
#define GOSU_DIRECTORIES_HPP

#include <string>

namespace Gosu
{
    //! Changes the current directory to the result of resourcePrefix().
    void useResourceDirectory();
    
    //! Prefix for a program's own resources.
    //! On Windows, the executable's containing directory.
    //! On OS X, the application's Resources subdirectory.
    //! On Linux, the current directory (empty string).
    std::wstring resourcePrefix();
    
    //! Prefix for resources of a group of programs.
    //! On Windows, the executable's containing directory.
    //! On OS X, the application's containing subdirectory.
    //! On Linux, the current directory (empty string).
    std::wstring sharedResourcePrefix();
    
    //! Prefix for user settings.
    //! On Windows, the same as %APPDATA%.
    //! On OS X, the user's Library/Preferences folder.
    //! On Linux, the home directory plus a trailing dot for hidden files.
    std::wstring userSettingsPrefix();
    
    //! Prefix for user documents, e.g. saved games.
    //! On Windows, the My Documents folder.
    //! On OS X, the user's Documents folder.
    //! On Linux, the home directory.
    std::wstring userDocsPrefix();
}

#endif

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gosu-0.10.9.pre1 Gosu/Directories.hpp
gosu-0.10.8 Gosu/Directories.hpp
gosu-0.10.7 Gosu/Directories.hpp
gosu-0.10.6 Gosu/Directories.hpp
gosu-0.10.5 Gosu/Directories.hpp
gosu-0.10.5.pre0 Gosu/Directories.hpp
gosu-0.10.5.pre1 Gosu/Directories.hpp
gosu-0.10.4 Gosu/Directories.hpp
gosu-0.10.3 Gosu/Directories.hpp
gosu-0.10.2 Gosu/Directories.hpp
gosu-0.10.2.pre1 Gosu/Directories.hpp
gosu-0.10.1.2 Gosu/Directories.hpp
gosu-0.10.1.1 Gosu/Directories.hpp
gosu-0.10.1 Gosu/Directories.hpp
gosu-0.10.0 Gosu/Directories.hpp