|
CoriEngine
|
Path manager is responsible for loading the fsgame.json file from the drive, parsing it, and providing paths based on aliases. More...
#include <PathManager.hpp>
Static Public Member Functions | |
| static std::filesystem::path | GetAliasedPath (const std::string &alias) |
| Retries the full aliased path defined in fsgame.json. | |
| static std::filesystem::path | GetAliasedPath (const std::string_view alias) |
| Retries the full aliased path defined in fsgame.json. | |
| static std::filesystem::path | GetAliasedPath (const char *alias) |
| Retries the full aliased path defined in fsgame.json. | |
Path manager is responsible for loading the fsgame.json file from the drive, parsing it, and providing paths based on aliases.
Example of fsgame.json:
By default you have alias 'BIN' defined, it points to the directory of the binary executable of your app. Cori expects you to define 'ENGINE_DATA' alias, it should point to the 'enginedata' path in the engine root folder, and a 'USER_DATA' alias to some folder that will hold saves (engine saves the last window and screen mode there)
Let's examine how to define aliases correctly:
When defining aliases you need to make sure the alias that you're trying to use as 'root' alias is defined above.
Example:
Incorrect:
Correct:
Definition at line 111 of file PathManager.hpp.
|
static |
Retries the full aliased path defined in fsgame.json.
| alias | Alias name to retrieve. |
Definition at line 35 of file PathManager.cpp.

|
static |
Retries the full aliased path defined in fsgame.json.
| alias | Alias name to retrieve. |
Definition at line 7 of file PathManager.cpp.

|
static |
Retries the full aliased path defined in fsgame.json.
| alias | Alias name to retrieve. |
Definition at line 21 of file PathManager.cpp.
