Permalink
Browse files

Merge pull request #413 from BonzaiThePenguin/master

Fixed loading the auto hold images
  • Loading branch information...
littleguy77 committed Feb 24, 2015
2 parents 7483584 + 0bcf8e7 commit 9cfded006dc45cddb8d0dd3f5672d9ee4a0c33df
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/paulscode/android/mupen64plusae/input/map/VisibleTouchMap.java
@@ -551,12 +551,12 @@ private void loadFpsIndicator( Profile profile )
*/
private void loadAutoHoldImages( Profile profile, String name )
{
Matcher matcher = Pattern.compile( "([^-]*)-hold(.*)" ).matcher( name );
if( matcher.groupCount() < 3 )
if ( !name.contains("-hold") )
return;
String group = matcher.group( 1 );
String hold = matcher.group( 2 );
String[] fields = name.split( "-hold" );
String group = fields[0];
String hold = fields[1];
int x = profile.getInt( group + "-x", -1 );
int y = profile.getInt( group + "-y", -1 );

0 comments on commit 9cfded0

Please sign in to comment.