mirror of https://github.com/stella-emu/stella.git
Make sure to only change the 'joymap' setting if any joysticks
have actually been loaded during the program run. Otherwise, it will erase previous mappings. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2286 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
d35c220953
commit
93a3952317
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <cstdlib>
|
||||
|
||||
#define STELLA_VERSION "3.5_svn_test2"
|
||||
#define STELLA_VERSION "3.5_svn_test3"
|
||||
#define STELLA_BUILD atoi("$Rev$" + 6)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1649,6 +1649,11 @@ void EventHandler::saveKeyMapping()
|
|||
void EventHandler::saveJoyMapping()
|
||||
{
|
||||
#ifdef JOYSTICK_SUPPORT
|
||||
// Don't update the joymap at all if it hasn't been modified during the
|
||||
// program run
|
||||
if(myNumJoysticks == 0)
|
||||
return;
|
||||
|
||||
// Save the joystick mapping hash table, making sure to update it with
|
||||
// any changes that have been made during the program run
|
||||
for(uInt32 i = 0; i < myNumJoysticks; ++i)
|
||||
|
|
Loading…
Reference in New Issue