Foundation
Loading...
Searching...
No Matches
Paths.hpp
Go to the documentation of this file.
1#pragma once
2#include <Core/Container.hpp>
3
4namespace Foundation::Core {
5
6// Init from argv[0] — call as the very first line of main(), before any chdir().
7void PathsInit(const char* argv0);
8
9// Init from a directory path directly (e.g. SDL_GetBasePath()).
10void PathsInitFromDir(const char* exeDir);
11
12// Prepend exe-dir to a relative path. Absolute paths are returned unchanged.
14
15} // namespace Foundation::Core
Lock-free atomic primitives and implementations of data structures.
Definition Allocator.hpp:5
std::basic_string< char > String
Alias for std::basic_string<char>, without an explicit allocator constructor.
Definition Container.hpp:112
void PathsInit(const char *argv0)
Definition Paths.cpp:8
void PathsInitFromDir(const char *exeDir)
Definition Paths.cpp:13
std::basic_string_view< char > StringView
Alias for std::basic_string_view<char>
Definition Container.hpp:55
String PathsResolve(StringView relPath)
Definition Paths.cpp:18