mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
(Android) Cleanup some includes
This commit is contained in:
parent
8ae39377e7
commit
f4f046fe17
@ -1,12 +1,5 @@
|
||||
package com.retroarch.browser.mainmenu;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
@ -20,7 +13,6 @@ import android.preference.Preference.OnPreferenceClickListener;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.provider.Settings;
|
||||
import android.util.Log;
|
||||
import android.widget.Toast;
|
||||
import android.os.Environment;
|
||||
import android.content.Context;
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
package com.retroarch.browser.preferences.util;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Context;
|
||||
@ -113,16 +110,6 @@ public final class UserPreferences
|
||||
return new_path;
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-reads the configuration file into the {@link SharedPreferences}
|
||||
* instance that contains all of the settings for the front-end.
|
||||
*
|
||||
* @param ctx the current {@link Context}.
|
||||
*/
|
||||
public static void readbackConfigFile(Context ctx)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the libretro configuration file
|
||||
* with new values if settings have changed.
|
||||
@ -310,31 +297,4 @@ public final class UserPreferences
|
||||
Log.i(TAG, "Using sampling rate: " + ret + " Hz");
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the CPU info, as provided by /proc/cpuinfo.
|
||||
*
|
||||
* @return the CPU info.
|
||||
*/
|
||||
public static String readCPUInfo()
|
||||
{
|
||||
StringBuilder result = new StringBuilder(255);
|
||||
|
||||
try
|
||||
{
|
||||
BufferedReader br = new BufferedReader(new InputStreamReader(
|
||||
new FileInputStream("/proc/cpuinfo")));
|
||||
|
||||
String line;
|
||||
while ((line = br.readLine()) != null)
|
||||
result.append(line).append('\n');
|
||||
br.close();
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
return result.toString();
|
||||
}
|
||||
}
|
||||
|
@ -22,6 +22,5 @@ public class RetroActivityCommon extends RetroActivityLocation
|
||||
// Use a separate JNI function to explicitly trigger the readback.
|
||||
public void onRetroArchExit()
|
||||
{
|
||||
UserPreferences.readbackConfigFile(this);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user