mirror of https://github.com/PCSX2/pcsx2.git
Only complain about not having a bios if we don't have a bios.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3074 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
ef8039ed1d
commit
321b341030
|
@ -94,7 +94,7 @@ Panels::BiosSelectorPanel::BiosSelectorPanel( wxWindow* parent, int idealWidth )
|
|||
|
||||
m_ComboBox->SetFont( wxFont( m_ComboBox->GetFont().GetPointSize()+1, wxFONTFAMILY_MODERN, wxNORMAL, wxNORMAL, false, L"Lucida Console" ) );
|
||||
m_ComboBox->SetMinSize( wxSize( wxDefaultCoord, std::max( m_ComboBox->GetMinSize().GetHeight(), 96 ) ) );
|
||||
|
||||
|
||||
m_FolderPicker->SetStaticDesc( _("Click the Browse button to select a different folder where PCSX2 will look for PS2 BIOS roms.") );
|
||||
|
||||
wxButton* refreshButton = new wxButton( this, wxID_ANY, _("Refresh list") );
|
||||
|
@ -117,6 +117,9 @@ void Panels::BiosSelectorPanel::Apply()
|
|||
int sel = m_ComboBox->GetSelection();
|
||||
if( sel == wxNOT_FOUND )
|
||||
{
|
||||
// If we already have a bios, lets not worry about it.
|
||||
if (g_Conf->BaseFilenames.Bios.IsOk() && wxFileName::FileExists(g_Conf->BaseFilenames.Bios.GetFullPath()) && !g_Conf->BaseFilenames.Bios.IsDir()) return;
|
||||
|
||||
throw Exception::CannotApplySettings( this,
|
||||
// English Log
|
||||
L"User did not specify a valid BIOS selection.",
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include "Dialogs.h"
|
||||
#include <wx/fileconf.h>
|
||||
|
||||
wxConfigBase *oldConfig;
|
||||
wxFileConfig *spuConfig;
|
||||
wxString path(L"~/.pcsx2/inis/spu2-x.ini");
|
||||
bool pathSet = false;
|
||||
|
@ -39,7 +38,6 @@ void CfgSetSettingsDir(const char* dir)
|
|||
FileLog("CfgSetSettingsDir(%s)\n", dir);
|
||||
path = wxString::FromAscii(dir) + L"/spu2-x.ini";
|
||||
pathSet = true;
|
||||
//initIni();
|
||||
}
|
||||
|
||||
void CfgWriteBool(const wchar_t* Section, const wchar_t* Name, bool Value)
|
||||
|
|
Loading…
Reference in New Issue