mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 13:18:50 +00:00
nJoy: Fixed bug that would cause the settings to be lost when nJoy was started without any detected gamepad
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2131 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
382b4af74b
commit
60e89dfc6f
5 changed files with 32 additions and 11 deletions
|
@ -96,6 +96,9 @@ void DEBUG_QUIT()
|
|||
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||
void Config::Save(int Slot)
|
||||
{
|
||||
// If there are no good pads don't save
|
||||
if (NumGoodPads == 0) return;
|
||||
|
||||
// Load ini file
|
||||
IniFile file;
|
||||
file.Load("nJoy.ini");
|
||||
|
@ -180,6 +183,9 @@ void Config::Save(int Slot)
|
|||
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||
void Config::Load(bool ChangePad, bool ChangeSaveByID)
|
||||
{
|
||||
// If there are no good pads don't load
|
||||
if (NumGoodPads == 0) return;
|
||||
|
||||
// Load file
|
||||
IniFile file;
|
||||
file.Load("nJoy.ini");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue