Change profile folder to avoid compatibilities issues

As discussed on IRC with Auria.

This removes the several issues already noticed when switching between 0.9.3 and git versions (forgotten challenges and settings ; and more recently a crash with highscores).

Reminder for git users : you can migrate your data by copying it from the previous folder to the new one, so you won't have to redo your settings/profiles.
This commit is contained in:
Alayan-stk-2 2018-09-13 02:19:00 +02:00 committed by GitHub
parent 6dab3b4e03
commit 323af45fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -921,7 +921,7 @@ void FileManager::checkAndCreateConfigDir()
if(m_user_config_dir.size()>0 && *m_user_config_dir.rbegin()!='/') if(m_user_config_dir.size()>0 && *m_user_config_dir.rbegin()!='/')
m_user_config_dir += "/"; m_user_config_dir += "/";
m_user_config_dir +="0.8.2/"; m_user_config_dir +="0.10-git/";
if(!checkAndCreateDirectoryP(m_user_config_dir)) if(!checkAndCreateDirectoryP(m_user_config_dir))
{ {
Log::warn("FileManager", "Can not create config dir '%s', " Log::warn("FileManager", "Can not create config dir '%s', "