[Android] Join declaration and assignment of a ConfigFile object in CoreSelection.java. Also made two variables final.

This commit is contained in:
Lioncash 2013-10-08 23:54:52 -04:00
parent a16be6af65
commit 16127e046c

View File

@ -21,18 +21,17 @@ public final class CoreSelection extends Activity implements AdapterView.OnItemC
@Override @Override
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
ConfigFile core_config;
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
core_config = new ConfigFile(); ConfigFile core_config = new ConfigFile();
try { try {
core_config.append(getAssets().open("libretro_cores.cfg")); core_config.append(getAssets().open("libretro_cores.cfg"));
} catch (IOException e) { } catch (IOException e) {
Log.e(TAG, "Failed to load libretro_cores.cfg from assets."); Log.e(TAG, "Failed to load libretro_cores.cfg from assets.");
} }
String cpuInfo = UserPreferences.readCPUInfo(); final String cpuInfo = UserPreferences.readCPUInfo();
boolean cpuIsNeon = cpuInfo.contains("neon"); final boolean cpuIsNeon = cpuInfo.contains("neon");
setContentView(R.layout.line_list); setContentView(R.layout.line_list);