Skip to content
Permalink
Browse files

Android: update IR defaults

  • Loading branch information...
zackhow committed Mar 23, 2019
1 parent dc51b95 commit f6225e96940185bea50483f39239d7f4afb6c0ce
@@ -19,7 +19,7 @@ IR/Forward = `Axis 116`
IR/Backward = `Axis 117`
IR/Hide = `Button 118`
IR/Height = 50
IR/Width = 30
IR/Width = 50
IR/Center = 50
Swing/Up = `Axis 120`
Swing/Down = `Axis 121`
@@ -158,7 +158,7 @@ IR/Forward = `Axis 116`
IR/Backward = `Axis 117`
IR/Hide = `Button 118`
IR/Height = 50
IR/Width = 30
IR/Width = 50
IR/Center = 50
Swing/Up = `Axis 120`
Swing/Down = `Axis 121`
@@ -297,7 +297,7 @@ IR/Forward = `Axis 116`
IR/Backward = `Axis 117`
IR/Hide = `Button 118`
IR/Height = 50
IR/Width = 30
IR/Width = 50
IR/Center = 50
Swing/Up = `Axis 120`
Swing/Down = `Axis 121`
@@ -436,7 +436,7 @@ IR/Forward = `Axis 116`
IR/Backward = `Axis 117`
IR/Hide = `Button 118`
IR/Height = 50
IR/Width = 30
IR/Width = 50
IR/Center = 50
Swing/Up = `Axis 120`
Swing/Down = `Axis 121`
@@ -19,7 +19,7 @@ IR/Forward = `Axis 116`
IR/Backward = `Axis 117`
IR/Hide = `Button 118`
IR/Height = 50
IR/Width = 30
IR/Width = 50
IR/Center = 50
Swing/Up = `Axis 120`
Swing/Down = `Axis 121`
@@ -34,6 +34,7 @@
"org.dolphinemu.dolphinemu.DIRECTORY_INITIALIZATION";

public static final String EXTRA_STATE = "directoryState";
private static final Integer WiimoteNewVersion = 2;
private static volatile DirectoryInitializationState directoryState = null;
private static String userPath;
private static String internalPath;
@@ -145,7 +146,20 @@ private static void initializeExternalStorage(Context context)
createWiimoteProfileDirectory(profileDirectory);

copyAsset("GCPadNew.ini", new File(configDirectory, "GCPadNew.ini"), true, context);
copyAsset("WiimoteNew.ini", new File(configDirectory, "WiimoteNew.ini"), false, context);

SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
if (prefs.getInt("WiimoteNewVersion", 0) != WiimoteNewVersion)
{
copyAsset("WiimoteNew.ini", new File(configDirectory, "WiimoteNew.ini"), true, context);
SharedPreferences.Editor sPrefsEditor = prefs.edit();
sPrefsEditor.putInt("WiimoteNewVersion", WiimoteNewVersion);
sPrefsEditor.apply();
}
else
{
copyAsset("WiimoteNew.ini", new File(configDirectory, "WiimoteNew.ini"), false, context);
}

copyAsset("WiimoteProfile.ini", new File(profileDirectory, "WiimoteProfile.ini"), true,
context);
}

0 comments on commit f6225e9

Please sign in to comment.
You can’t perform that action at this time.