From c626a12e7a6289243669606c9f97d6be3e60af67 Mon Sep 17 00:00:00 2001 From: Jay Dolan Date: Wed, 18 Mar 2015 11:00:57 -0400 Subject: [PATCH] Use glib's g_get_user_special_dir to resolve 'Documents'. This works on XP (My Documents) and Vista+ (Documents). --- radiant/preferences.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index 505bea94..19e98db7 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -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