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:
ttimo 2023-08-20 14:48:02 -05:00
parent d932cb1205
commit 980356d87e
1 changed files with 5 additions and 2 deletions

View File

@ -1476,13 +1476,16 @@ void PrefsDlg::Init(){
// game sub-dir
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 );
if ( CheckFile( m_rc_path->str ) != PATH_DIRECTORY ) {
Error( "%s is not a directory", m_rc_path->str );
}
// then the ini file
m_inipath = g_string_new( m_rc_path->str );
g_string_append( m_inipath, PREFS_LOCAL_FILENAME );
}
void PrefsDlg::UpdateData( bool retrieve ){