Mercurial > minori
view include/core/filesystem.h @ 229:adc20fa321c1
theme: force Fusion style on platforms other than Win32 or OS X
I was reluctant to do this, but most of the other styles just
look like pure shite regardless of whether I force a stylesheet
on them or not. KDE's style is actually hilariously bad paired
with my stylesheet, so I've decided to also make the stylesheet
Windows-specific as well, because that's really the only platform
where it makes sense in the first place.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 10 Jan 2024 21:23:57 -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