Mercurial > minori
view include/core/filesystem.h @ 351:c844f8bb87ce
gui/theme: add xsettings backend
this also adds newly-necessary endianness methods in core/endian.h
which just so happen to be constexpr as well
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 14 Jul 2024 23:23:56 -0400 |
parents | 3ec7804abf17 |
children |
line wrap: on
line source
#ifndef MINORI_CORE_FILESYSTEM_H_ #define MINORI_CORE_FILESYSTEM_H_ #include <filesystem> #include <string> namespace Filesystem { void CreateDirectories(const std::filesystem::path& path); std::filesystem::path GetDotPath(); // %APPDATA%/minori/, ~/Library/Application Support/minori/, ~/.config/minori/... std::filesystem::path GetConfigPath(); // (dotpath)/config.json std::filesystem::path GetAnimeDBPath(); // (dotpath)/anime/db.json std::filesystem::path GetTorrentsPath(); // (dotpath)/torrents/... } // namespace Filesystem #endif // MINORI_CORE_FILESYSTEM_H_