Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Android] Redo the Settings menu, Can now change the CPU Core, dual c…
…ore setting, and video backend in the settings"
- Loading branch information
1 parent
9a1b9e9
commit f8a5d05
Showing
9 changed files
with
437 additions
and
340 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" | ||
| > | ||
| <PreferenceCategory | ||
| android:summary="Settings" | ||
| android:title="CPU Settings" > | ||
| <ListPreference | ||
| android:entries="@array/cpuOptions" | ||
| android:entryValues="@array/cpuValues" | ||
| android:key="cpupref" | ||
| android:summary="Emulation core to use" | ||
| android:title="CPU Core" /> | ||
| <CheckBoxPreference | ||
| android:key="dualcorepref" | ||
| android:summary="On/Off" | ||
| android:title="Dual Core" /> | ||
| </PreferenceCategory> | ||
| <PreferenceCategory | ||
| android:summary="Settings" | ||
| android:title="Video Settings" > | ||
| <ListPreference | ||
| android:entries="@array/gpuOptions" | ||
| android:entryValues="@array/gpuValues" | ||
| android:key="gpupref" | ||
| android:summary="Video backend to use" | ||
| android:title="Video Backend" /> | ||
| </PreferenceCategory> | ||
| </PreferenceScreen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
| <string-array name="cpuOptions"> | ||
| <item>Interpreter</item> | ||
| <item>ARM JIT Recompiler</item> | ||
| </string-array> | ||
|
|
||
| <string-array name="cpuValues"> | ||
| <item>0</item> | ||
| <item>3</item> | ||
| </string-array> | ||
|
|
||
| <string-array name="gpuOptions"> | ||
| <item>Software Renderer</item> | ||
| <item>OpenGL</item> | ||
| </string-array> | ||
|
|
||
| <string-array name="gpuValues"> | ||
| <item>Software Renderer</item> | ||
| <item>OGL</item> | ||
| </string-array> | ||
| </resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
Source/Android/src/org/dolphinemu/dolphinemu/PrefsActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| package org.dolphinemu.dolphinemu; | ||
|
|
||
| import android.app.Activity; | ||
| import android.content.Intent; | ||
| import android.os.Bundle; | ||
| import android.preference.PreferenceActivity; | ||
| import android.preference.PreferenceFragment; | ||
|
|
||
| /** | ||
| * Copyright 2013 Dolphin Emulator Project | ||
| * Licensed under GPLv2 | ||
| * Refer to the license.txt file included. | ||
| */ | ||
| public class PrefsActivity extends PreferenceActivity { | ||
|
|
||
| public class PrefsFragment extends PreferenceFragment { | ||
|
|
||
| @Override | ||
| public void onCreate(Bundle savedInstanceState) { | ||
| super.onCreate(savedInstanceState); | ||
|
|
||
| // Load the preferences from an XML resource | ||
| addPreferencesFromResource(R.layout.prefs); | ||
| } | ||
| } | ||
|
|
||
| @Override | ||
| protected void onCreate(Bundle savedInstanceState) { | ||
| super.onCreate(savedInstanceState); | ||
| getFragmentManager().beginTransaction().replace(android.R.id.content, | ||
| new PrefsFragment()).commit(); | ||
| } | ||
| @Override | ||
| public void onBackPressed() { | ||
| Intent intent = new Intent(); | ||
| setResult(Activity.RESULT_OK, intent); | ||
| this.finish(); | ||
| super.onBackPressed(); | ||
| } | ||
| } |
56 changes: 0 additions & 56 deletions
56
Source/Android/src/org/dolphinemu/dolphinemu/SettingBrowser.java
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
Source/Android/src/org/dolphinemu/dolphinemu/SettingMenuAdapter.java
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
Source/Android/src/org/dolphinemu/dolphinemu/SettingMenuItem.java
This file was deleted.
Oops, something went wrong.