view include/core/filesystem.h @ 158:80d6b28eb29f

dep/animia: fix most X11 stuff it looks like _NET_WM_PID isn't supported by MOST clients, or my code is wrong... core/filesystem: fix Linux config path handling on *nix
author Paper <mrpapersonic@gmail.com>
date Fri, 17 Nov 2023 02:07:33 -0500
parents 0a458cb26ff4
children 2f5a9247e501
line wrap: on
line source

#ifndef __core__filesystem_h
#define __core__filesystem_h
#include <string>
#include <filesystem>

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 GetPlayersPath();    // (dotpath)/player.json
std::filesystem::path GetExtensionsPath(); // (dotpath)/extensions.json

} // namespace Filesystem

#endif // __core__filesystem_h