📂 golxzn::os::filesystem 📂 1.6.5
golxzn filesystem submodule
|
Functions | |
static error | golxzn::os::filesystem::initialize (const std::wstring_view application_name, const std::wstring_view assets_path=default_assets_directory_name) |
Initialize the Resource Manager. | |
static void | golxzn::os::filesystem::set_application_name (const std::wstring_view application_name) noexcept |
Sets the application name object. | |
static void | golxzn::os::filesystem::associate (std::wstring_view protocol, std::wstring &&prefix) noexcept |
Add the association between the protocol and the prefix. (ex. L"res://" and L"user://") | |
|
staticnoexcept |
Add the association between the protocol and the prefix. (ex. L"res://" and L"user://")
Add custom protocol to your application. For example, you could have a L"ab-test://" association with your own separated assets directory.
protocol | Protocol extension (ex. "res://"). Has to end with "://" |
prefix | Prefix of the path. Has to end with a slash! |
|
static |
Initialize the Resource Manager.
application_name | Your application name or the name of the user assets directory |
assets_path | The name of the assets directory or the full path to the directory. If there's [LETTER]:/ or / at the beginning of the string, the path will be used as it is. Otherwise the path is relative to the program's directory. |
|
staticnoexcept |
Sets the application name object.
Sets the name of the application which is used in the directory path for user data. If the name is empty, the default name will be used.
application_name | application name |