Merge pull request #287 from jdolan/master

Use g_get_user_special_dir rather than hard-coded "My Documents"
This commit is contained in:
Timothee "TTimo" Besset 2015-03-18 11:59:15 -05:00
commit 0f75c22b0d
1 changed files with 2 additions and 2 deletions

View File

@ -1322,8 +1322,8 @@ void CGameDialog::Init(){
g_qeglobals.m_strHomeGame += m_pCurrentGameDescription->mUserPathPrefix.GetBuffer();
g_qeglobals.m_strHomeGame += "/";
#elif defined ( _WIN32 )
g_qeglobals.m_strHomeGame = g_get_home_dir();
g_qeglobals.m_strHomeGame += "\\My Documents\\My Games\\";
g_qeglobals.m_strHomeGame = g_get_user_special_dir( G_USER_DIRECTORY_DOCUMENTS );
g_qeglobals.m_strHomeGame += "\\My Games\\";
g_qeglobals.m_strHomeGame += m_pCurrentGameDescription->mUserPathPrefix.GetBuffer();
g_qeglobals.m_strHomeGame += "\\";
#endif