mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 21:39:54 +00:00
Merge pull request #819 from lioncash/android-misc
Android: Minor changes to UserPreferences.java
This commit is contained in:
commit
11a4a52449
@ -321,8 +321,8 @@ public final class UserPreferences
|
||||
private static String sanitizeLibretroPath(String path)
|
||||
{
|
||||
String sanitized_name = path.substring(
|
||||
path.lastIndexOf("/") + 1,
|
||||
path.lastIndexOf("."));
|
||||
path.lastIndexOf('/') + 1,
|
||||
path.lastIndexOf('.'));
|
||||
sanitized_name = sanitized_name.replace("neon", "");
|
||||
sanitized_name = sanitized_name.replace("libretro_", "");
|
||||
|
||||
@ -406,7 +406,7 @@ public final class UserPreferences
|
||||
*/
|
||||
public static String readCPUInfo()
|
||||
{
|
||||
String result = "";
|
||||
StringBuilder result = new StringBuilder(255);
|
||||
|
||||
try
|
||||
{
|
||||
@ -415,7 +415,7 @@ public final class UserPreferences
|
||||
|
||||
String line;
|
||||
while ((line = br.readLine()) != null)
|
||||
result += line + "\n";
|
||||
result.append(line).append('\n');
|
||||
br.close();
|
||||
}
|
||||
catch (IOException ex)
|
||||
@ -423,6 +423,6 @@ public final class UserPreferences
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
return result;
|
||||
return result.toString();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user