mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Use glib's g_get_user_special_dir to resolve 'Documents'. This works on XP (My Documents) and Vista+ (Documents).
This commit is contained in:
parent
3446bf9b27
commit
c626a12e7a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue