mirror of https://github.com/PCSX2/pcsx2.git
Lilypad and PCSX2 ini/config bugfixes.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2362 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
9f41fc4793
commit
bb319266fc
|
@ -427,8 +427,6 @@ namespace Panels
|
|||
class ComboBoxPanel : public wxPanelWithHelpers
|
||||
{
|
||||
protected:
|
||||
EventListenerBinding<PluginEventType> m_Listener_CorePluginStatus;
|
||||
|
||||
wxComboBox* m_combobox[PluginId_Count];
|
||||
wxButton* m_configbutton[PluginId_Count];
|
||||
DirPickerPanel& m_FolderPicker;
|
||||
|
|
|
@ -184,7 +184,6 @@ static const int ButtonId_Configure = 51;
|
|||
// =====================================================================================================
|
||||
Panels::PluginSelectorPanel::ComboBoxPanel::ComboBoxPanel( PluginSelectorPanel* parent )
|
||||
: wxPanelWithHelpers( parent, wxVERTICAL )
|
||||
, m_Listener_CorePluginStatus( wxGetApp().Source_CorePluginStatus(), EventListener<PluginEventType> ( this, OnCorePluginStatusChanged ) )
|
||||
, m_FolderPicker( *new DirPickerPanel( this, FolderId_Plugins,
|
||||
_("Plugins Search Path:"),
|
||||
_("Select a folder with PCSX2 plugins") )
|
||||
|
@ -238,10 +237,14 @@ void __evt_fastcall Panels::PluginSelectorPanel::OnCorePluginStatusChanged( void
|
|||
|
||||
PluginSelectorPanel& panel = *(PluginSelectorPanel*)obj;
|
||||
|
||||
const PluginInfo* pi = tbl_PluginInfo; do {
|
||||
if( panel.IsBeingDeleted() ) return;
|
||||
|
||||
const PluginInfo* pi = tbl_PluginInfo; do
|
||||
{
|
||||
wxComboBox& box( panel.m_ComponentBoxes->Get(pi->id) );
|
||||
panel.m_ComponentBoxes->GetConfigButton(pi->id).Enable(
|
||||
(panel.m_FileList==NULL) ? false :
|
||||
g_Conf->FullpathMatchTest( pi->id, (*panel.m_FileList)[pi->id] )
|
||||
(panel.m_FileList==NULL || panel.m_FileList->Count() == 0) ? false :
|
||||
g_Conf->FullpathMatchTest( pi->id, panel.m_FileList->at((int)box.GetClientData(box.GetSelection())) )
|
||||
);
|
||||
} while( ++pi, pi->shortname != NULL );
|
||||
|
||||
|
@ -474,7 +477,7 @@ void Panels::PluginSelectorPanel::OnPluginSelected( wxCommandEvent& evt )
|
|||
|
||||
const PluginInfo* pi = tbl_PluginInfo; do
|
||||
{
|
||||
wxComboBox& box = m_ComponentBoxes->Get(pi->id);
|
||||
wxComboBox& box( m_ComponentBoxes->Get(pi->id) );
|
||||
if( box.GetId() == evt.GetId() )
|
||||
{
|
||||
// Button is enabled if:
|
||||
|
|
|
@ -274,10 +274,10 @@ wchar_t *GetCommandStringW(u8 command, int port, int slot) {
|
|||
|
||||
static wchar_t iniFile[MAX_PATH*2] = L"inis\\LilyPad.ini";
|
||||
|
||||
void CALLBACK PADsetSettingsDir(wchar_t *dir)
|
||||
void CALLBACK PADsetSettingsDir( const char *dir )
|
||||
{
|
||||
// emulator assures a trailing slash/backslash (yay!)
|
||||
wcscpy(iniFile, (dir==NULL) ? L"inis\\" : dir);
|
||||
swprintf_s( iniFile, L"%S", (dir==NULL) ? "inis\\" : dir );
|
||||
wcscat(iniFile, L"LilyPad.ini");
|
||||
|
||||
createIniDir = false;
|
||||
|
|
Loading…
Reference in New Issue