summaryrefslogtreecommitdiff
path: root/Source/Android
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2014-11-30 15:43:47 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2014-11-30 15:43:47 -0600
commitdb9cd8e3d71a3ad83b01b7d2c08bfe2a43518331 (patch)
treedda809eea3532d8a34634e27fb74383e25f0ebaf /Source/Android
parentd3c278cc334b3df86ee87484dc8b4ac96caff7b0 (diff)
parent496f9d678a61f8802bcc7bcb5b88adef90a6bef6 (diff)
Merge pull request #1615 from Sonicadvance1/fix_cpu_helper
[Android] Removes CPU architecture number from CPU helper.
Diffstat (limited to 'Source/Android')
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/utils/CPUHelper.java25
1 files changed, 10 insertions, 15 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/utils/CPUHelper.java b/Source/Android/src/org/dolphinemu/dolphinemu/utils/CPUHelper.java
index 43e6b66da4..30be6e2213 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/utils/CPUHelper.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/utils/CPUHelper.java
@@ -18,7 +18,6 @@ import android.util.Log;
public final class CPUHelper
{
private int revision;
- private int architecture;
private int variant;
private int numCores;
private String implementerID = "N/A";
@@ -80,15 +79,6 @@ public final class CPUHelper
return revision;
}
- /**
- * Gets the architecture number of the CPU.
- *
- * @return the architecture number of the CPU.
- */
- public int getArchitecture()
- {
- return architecture;
- }
/**
* Gets the CPU variant number.
@@ -171,6 +161,13 @@ public final class CPUHelper
}
/**
+ * Whether or not this CPU is using the ARM64 architecture.
+ *
+ * @return true if this CPU uses the ARM64 architecture; false otherwise.
+ */
+ public static boolean isARM64() { return Build.CPU_ABI.contains("arm64"); }
+
+ /**
* Whether or not this CPU is using the x86 architecture.
*
* @return true if this CPU uses the x86 architecture; false otherwise.
@@ -217,11 +214,6 @@ public final class CPUHelper
{
this.implementerID = parseArmID(Integer.decode(parseLine(line)));
}
- // Intentional lack of "\t:" sometimes the tab isn't present.
- else if (line.contains("CPU architecture"))
- {
- this.architecture = Integer.decode(parseLine(line));
- }
else if (line.contains("CPU part\t:"))
{
this.part = parseArmPartNumber(Integer.decode(parseLine(line)));
@@ -271,6 +263,9 @@ public final class CPUHelper
case 0x4D:
return "Freescale Semiconductor Inc.";
+ case 0x4E:
+ return "Nvidia Corporation";
+
case 0x51:
return "Qualcomm Inc.";