1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

- (linux) XDG filesystem support

BIG NOTE TO LINUX USERS
All user data has been moved according to XDG specs:
- Game data (H3 files and mods) and saves: from ~/.vcmi to ~/.local/
- Temporary files, including logs: from ~/.vcmi to ~/.cache/vcmi
- Config files: from ~/.vcmi/config to ~/.config/vcmi

For compatibility VCMI will read game data from ~/.vcmi as well but this
is temporary behavior and will be removed
This commit is contained in:
Ivan Savenko
2014-03-04 14:51:10 +00:00
parent ae55532131
commit 5cbec833c2
7 changed files with 100 additions and 29 deletions

View File

@@ -171,9 +171,14 @@ void init()
static void prog_version(void)
{
printf("%s\n", GameConstants::VCMI_VERSION.c_str());
printf(" data directory: %s\n", VCMIDirs::get().dataPaths().back().c_str());
printf(" library directory: %s\n", VCMIDirs::get().libraryPath().c_str());
printf(" path to server: %s\n", VCMIDirs::get().serverPath().c_str());
printf(" game data: %s\n", boost::algorithm::join(VCMIDirs::get().dataPaths(), ":").c_str());
printf(" libraries: %s\n", VCMIDirs::get().libraryPath().c_str());
printf(" server: %s\n", VCMIDirs::get().serverPath().c_str());
printf("\n");
printf(" user data: %s\n", VCMIDirs::get().userDataPath().c_str());
printf(" user cache: %s\n", VCMIDirs::get().userCachePath().c_str());
printf(" user config: %s\n", VCMIDirs::get().userConfigPath().c_str());
printf(" user saves: %s\n", VCMIDirs::get().userSavePath().c_str());
}
static void prog_help(const po::options_description &opts)