only save mappings for user-changable mapping slots (less cluttered keymaps.ini)

This commit is contained in:
Chris Danford
2006-01-26 06:05:35 +00:00
parent 73afc606b5
commit e507e4ab9e
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -526,7 +526,7 @@ void InputMapper::SaveMappingsToDisk()
RString sNameString = GameI.toString( pGame );
vector<RString> asValues;
for( int slot = 0; slot < NUM_GAME_TO_DEVICE_SLOTS; ++slot )
for( int slot = 0; slot < NUM_USER_GAME_TO_DEVICE_SLOTS; ++slot ) // don't save data from the last (keyboard automap) slot
asValues.push_back( m_GItoDI[i][j][slot].ToString() );
while( asValues.size() && asValues.back() == "" )