mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
netrun being on (see previous fix) highlighted that we are trying to have both a file and prefs directory at the same path - any prefs saving was likely broken on windows?
This commit is contained in:
parent
d932cb1205
commit
980356d87e
1 changed files with 5 additions and 2 deletions
|
@ -1476,13 +1476,16 @@ void PrefsDlg::Init(){
|
||||||
|
|
||||||
// game sub-dir
|
// game sub-dir
|
||||||
g_string_append( m_rc_path, g_pGameDescription->mGameFile.GetBuffer() );
|
g_string_append( m_rc_path, g_pGameDescription->mGameFile.GetBuffer() );
|
||||||
g_string_append( m_rc_path, "/" );
|
g_string_append( m_rc_path, ".prefs/" );
|
||||||
Q_mkdir( m_rc_path->str, 0775 );
|
Q_mkdir( m_rc_path->str, 0775 );
|
||||||
|
|
||||||
|
if ( CheckFile( m_rc_path->str ) != PATH_DIRECTORY ) {
|
||||||
|
Error( "%s is not a directory", m_rc_path->str );
|
||||||
|
}
|
||||||
|
|
||||||
// then the ini file
|
// then the ini file
|
||||||
m_inipath = g_string_new( m_rc_path->str );
|
m_inipath = g_string_new( m_rc_path->str );
|
||||||
g_string_append( m_inipath, PREFS_LOCAL_FILENAME );
|
g_string_append( m_inipath, PREFS_LOCAL_FILENAME );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrefsDlg::UpdateData( bool retrieve ){
|
void PrefsDlg::UpdateData( bool retrieve ){
|
||||||
|
|
Loading…
Reference in a new issue