don't append excess slash to g_qeglobals.m_userGamePath
This commit is contained in:
@@ -593,7 +593,7 @@ const char* misc_model_dialog( GtkWidget* parent ){
|
||||
if ( !file_readable( buffer.c_str() ) ) {
|
||||
// just go to fsmain
|
||||
buffer.clear();
|
||||
buffer << g_qeglobals.m_userGamePath.c_str() << "/";
|
||||
buffer << g_qeglobals.m_userGamePath.c_str();
|
||||
}
|
||||
|
||||
const char *filename = file_dialog( parent, TRUE, "Choose Model", buffer.c_str(), ModelLoader::Name() );
|
||||
|
||||
@@ -330,7 +330,7 @@ const char* browse_sound( GtkWidget* parent ){
|
||||
if ( !file_readable( buffer.c_str() ) ) {
|
||||
// just go to fsmain
|
||||
buffer.clear();
|
||||
buffer << g_qeglobals.m_userGamePath.c_str() << "/";
|
||||
buffer << g_qeglobals.m_userGamePath.c_str();
|
||||
}
|
||||
|
||||
const char* filename = file_dialog( parent, TRUE, "Open Wav File", buffer.c_str(), "sound" );
|
||||
|
||||
@@ -1336,7 +1336,7 @@ const char* BackgroundImage::background_image_dialog(){
|
||||
if ( !file_readable( buffer.c_str() ) ) {
|
||||
// just go to fsmain
|
||||
buffer.clear();
|
||||
buffer << g_qeglobals.m_userGamePath.c_str() << "/";
|
||||
buffer << g_qeglobals.m_userGamePath.c_str();
|
||||
}
|
||||
|
||||
const char *filename = file_dialog( GTK_WIDGET( MainFrame_getWindow() ), TRUE, "Background Image", buffer.c_str(), NULL );
|
||||
|
||||
Reference in New Issue
Block a user