mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
nJoy: minor fix, loading settings while game is running.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@62 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
1d175eadd7
commit
5955748d58
@ -520,11 +520,13 @@ void GetControllerAll(HWND hDlg, int controller)
|
|||||||
|
|
||||||
void UpdateVisibleItems(HWND hDlg, int controllertype)
|
void UpdateVisibleItems(HWND hDlg, int controllertype)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
if(controllertype == CTL_TYPE_KEYBOARD)
|
if(controllertype == CTL_TYPE_KEYBOARD)
|
||||||
ComboBox_Enable(GetDlgItem(hDlg, IDC_JOYNAME), FALSE);
|
ComboBox_Enable(GetDlgItem(hDlg, IDC_JOYNAME), FALSE);
|
||||||
else
|
else
|
||||||
ComboBox_Enable(GetDlgItem(hDlg, IDC_JOYNAME), TRUE);
|
ComboBox_Enable(GetDlgItem(hDlg, IDC_JOYNAME), TRUE);
|
||||||
|
*/
|
||||||
|
|
||||||
if(controllertype)
|
if(controllertype)
|
||||||
{
|
{
|
||||||
// 4 extra buttons
|
// 4 extra buttons
|
||||||
|
@ -90,9 +90,12 @@ void DllConfig(HWND _hParent)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
LoadConfig();
|
LoadConfig(); // load settings
|
||||||
if(OpenConfig(nJoy_hInst, _hParent))
|
if(OpenConfig(nJoy_hInst, _hParent))
|
||||||
|
{
|
||||||
SaveConfig();
|
SaveConfig();
|
||||||
|
}
|
||||||
|
LoadConfig(); // reload settings
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init PAD (start emulation)
|
// Init PAD (start emulation)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user