|
Fray Engine
|
#include <atomic>#include <cerrno>#include <cstring>#include <filesystem>#include <fstream>#include <string>#include "errors.hpp"#include "log_manager.hpp"#include <fcntl.h>#include <unistd.h>Go to the source code of this file.
Namespaces | |
| namespace | fray |
| namespace | fray::state |
Functions | |
| F_err | fray::state::readApplicationLocation (const std::filesystem::path &directory, std::filesystem::path &result) |
| Reads the selected application database path, if one has been recorded. | |
| F_err | fray::state::writeApplicationFile (const std::filesystem::path &directory, const std::string &filename, const std::string &value, bool replaceExisting=true) |
| Atomically replaces a named application-owned file. | |
| F_err | fray::state::writeApplicationLocation (const std::filesystem::path &directory, const std::filesystem::path &database) |
| Atomically records the selected application database path. | |
Variables | |
| constexpr const char * | fray::state::applicationLocationFile = "Fray.application-database" |
| Name of the Engine-adjacent file identifying the selected application database. | |