Sha256: cf64e0a41bc0632d36c49c7cd320fce730da8324e18314ea2adfc5ad2f4f94d1

Contents?: true

Size: 1.24 KB

Versions: 38

Compression:

Stored size: 1.24 KB

Contents

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

#pragma once

#include <string>

namespace Gosu
{
    //! Changes the current directory to the result of resource_prefix().
    void use_resource_directory();
    
    //! Prefix for a program's own resources.
    //! On Windows, the parent directory of the executable.
    //! On macOS, the 'Resources' directory inside the .app bundle.
    //! On Linux, the current directory (empty string).
    std::string resource_prefix();
    
    //! Prefix for shared resources of a group of programs.
    //! On Windows, the parent directory of the executable.
    //! On macOS, the parent directory of the .app bundle.
    //! On Linux, the current directory (empty string).
    std::string shared_resource_prefix();
    
    //! Prefix for user settings.
    //! On Windows, the same as %APPDATA%.
    //! On macOS, the user's Library/Preferences folder.
    //! On Linux, the home directory plus a trailing dot for hidden files.
    std::string user_settings_prefix();
    
    //! Prefix for user documents, e.g. saved games.
    //! On Windows, the My Documents folder.
    //! On macOS, the user's Documents folder.
    //! On Linux, the home directory.
    std::string user_documents_prefix();
}

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
gosu-1.4.1 include/Gosu/Directories.hpp
gosu-1.4.0 include/Gosu/Directories.hpp
gosu-1.3.0 include/Gosu/Directories.hpp
gosu-1.2.0 include/Gosu/Directories.hpp
gosu-1.1.1.1 include/Gosu/Directories.hpp
gosu-1.1.0 include/Gosu/Directories.hpp
gosu-1.1.0.pre2 include/Gosu/Directories.hpp
gosu-1.1.0.pre1 include/Gosu/Directories.hpp
gosu-1.0.0 include/Gosu/Directories.hpp
gosu-1.0.0.pre2 include/Gosu/Directories.hpp
gosu-1.0.0.pre1 include/Gosu/Directories.hpp
gosu-0.15.2 Gosu/Directories.hpp
gosu-0.15.1 Gosu/Directories.hpp
gosu-0.15.0 Gosu/Directories.hpp
gosu-0.14.6.pre1 Gosu/Directories.hpp
gosu-0.14.5 Gosu/Directories.hpp
gosu-0.14.4 Gosu/Directories.hpp
gosu-0.14.4.pre2 Gosu/Directories.hpp
gosu-0.14.3.pre1 Gosu/Directories.hpp
gosu-0.14.3 Gosu/Directories.hpp