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-0.14.0 Gosu/Directories.hpp
gosu-0.14.0.pre2 Gosu/Directories.hpp
gosu-0.13.3 Gosu/Directories.hpp
gosu-0.13.2 Gosu/Directories.hpp
gosu-0.13.1 Gosu/Directories.hpp
gosu-0.13.0 Gosu/Directories.hpp
gosu-0.12.1 Gosu/Directories.hpp
gosu-0.12.0 Gosu/Directories.hpp
gosu-0.11.4.pre3 Gosu/Directories.hpp
gosu-0.11.4.pre2 Gosu/Directories.hpp
gosu-0.11.4.pre1 Gosu/Directories.hpp
gosu-0.11.3.1 Gosu/Directories.hpp
gosu-0.11.3 Gosu/Directories.hpp
gosu-0.11.3.pre1 Gosu/Directories.hpp
gosu-0.11.2 Gosu/Directories.hpp
gosu-0.11.1 Gosu/Directories.hpp
gosu-0.11.1.pre1 Gosu/Directories.hpp
gosu-0.11.0 Gosu/Directories.hpp