Merge pull request #1967 from Sonicadvance1/Android_settings
[Android] Change some configuration options.
This commit is contained in:
commit
7df55d220f
|
@ -1,192 +0,0 @@
|
||||||
[General]
|
|
||||||
ISOPaths = 0
|
|
||||||
LastFilename =
|
|
||||||
ShowLag = False
|
|
||||||
RecursiveISOPaths = False
|
|
||||||
NANDRoot = //sdcard/dolphin-emu/Wii
|
|
||||||
WirelessMac =
|
|
||||||
[Core]
|
|
||||||
CPUCore = 3
|
|
||||||
CPUThread = False
|
|
||||||
GFXBackend = Software Renderer
|
|
||||||
HLE_BS2 = False
|
|
||||||
Fastmem = False
|
|
||||||
DSPThread = False
|
|
||||||
DSPHLE = True
|
|
||||||
SkipIdle = True
|
|
||||||
DefaultISO =
|
|
||||||
DVDRoot =
|
|
||||||
Apploader =
|
|
||||||
EnableCheats = False
|
|
||||||
SelectedLanguage = 0
|
|
||||||
DPL2Decoder = False
|
|
||||||
Latency = 14
|
|
||||||
MemcardA =
|
|
||||||
MemcardB =
|
|
||||||
SlotA = 1
|
|
||||||
SlotB = 255
|
|
||||||
SerialPort1 = 255
|
|
||||||
BBA_MAC =
|
|
||||||
SIDevice0 = 6
|
|
||||||
SIDevice1 = 0
|
|
||||||
SIDevice2 = 0
|
|
||||||
SIDevice3 = 0
|
|
||||||
WiiSDCard = False
|
|
||||||
WiiKeyboard = False
|
|
||||||
WiimoteReconnectOnLoad = True
|
|
||||||
WiimoteContinuousScanning = False
|
|
||||||
WiimoteEnableSpeaker = True
|
|
||||||
RunCompareServer = False
|
|
||||||
RunCompareClient = False
|
|
||||||
FrameLimit = 0x00000001
|
|
||||||
UseFPS = False
|
|
||||||
[Interface]
|
|
||||||
ConfirmStop = False
|
|
||||||
UsePanicHandlers = True
|
|
||||||
OnScreenDisplayMessages = True
|
|
||||||
HideCursor = False
|
|
||||||
AutoHideCursor = False
|
|
||||||
MainWindowPosX = 100
|
|
||||||
MainWindowPosY = 100
|
|
||||||
MainWindowWidth = 800
|
|
||||||
MainWindowHeight = 600
|
|
||||||
Language = 0
|
|
||||||
ShowToolbar = True
|
|
||||||
ShowStatusbar = True
|
|
||||||
ShowLogWindow = False
|
|
||||||
ShowLogConfigWindow = False
|
|
||||||
ShowConsole = False
|
|
||||||
ThemeName40 = Clean
|
|
||||||
[Hotkeys]
|
|
||||||
Open = 79
|
|
||||||
OpenModifier = 2
|
|
||||||
ChangeDisc = 0
|
|
||||||
ChangeDiscModifier = 0
|
|
||||||
RefreshList = 0
|
|
||||||
RefreshListModifier = 0
|
|
||||||
PlayPause = 349
|
|
||||||
PlayPauseModifier = 0
|
|
||||||
Stop = 27
|
|
||||||
StopModifier = 0
|
|
||||||
Reset = 0
|
|
||||||
ResetModifier = 0
|
|
||||||
FrameAdvance = 0
|
|
||||||
FrameAdvanceModifier = 0
|
|
||||||
StartRecording = 0
|
|
||||||
StartRecordingModifier = 0
|
|
||||||
PlayRecording = 0
|
|
||||||
PlayRecordingModifier = 0
|
|
||||||
ExportRecording = 0
|
|
||||||
ExportRecordingModifier = 0
|
|
||||||
Readonlymode = 0
|
|
||||||
ReadonlymodeModifier = 0
|
|
||||||
ToggleFullscreen = 13
|
|
||||||
ToggleFullscreenModifier = 1
|
|
||||||
Screenshot = 348
|
|
||||||
ScreenshotModifier = 0
|
|
||||||
Exit = 0
|
|
||||||
ExitModifier = 0
|
|
||||||
Wiimote1Connect = 344
|
|
||||||
Wiimote1ConnectModifier = 1
|
|
||||||
Wiimote2Connect = 345
|
|
||||||
Wiimote2ConnectModifier = 1
|
|
||||||
Wiimote3Connect = 346
|
|
||||||
Wiimote3ConnectModifier = 1
|
|
||||||
Wiimote4Connect = 347
|
|
||||||
Wiimote4ConnectModifier = 1
|
|
||||||
LoadStateSlot1 = 340
|
|
||||||
LoadStateSlot1Modifier = 0
|
|
||||||
LoadStateSlot2 = 341
|
|
||||||
LoadStateSlot2Modifier = 0
|
|
||||||
LoadStateSlot3 = 342
|
|
||||||
LoadStateSlot3Modifier = 0
|
|
||||||
LoadStateSlot4 = 343
|
|
||||||
LoadStateSlot4Modifier = 0
|
|
||||||
LoadStateSlot5 = 344
|
|
||||||
LoadStateSlot5Modifier = 0
|
|
||||||
LoadStateSlot6 = 345
|
|
||||||
LoadStateSlot6Modifier = 0
|
|
||||||
LoadStateSlot7 = 346
|
|
||||||
LoadStateSlot7Modifier = 0
|
|
||||||
LoadStateSlot8 = 347
|
|
||||||
LoadStateSlot8Modifier = 0
|
|
||||||
SaveStateSlot1 = 340
|
|
||||||
SaveStateSlot1Modifier = 4
|
|
||||||
SaveStateSlot2 = 341
|
|
||||||
SaveStateSlot2Modifier = 4
|
|
||||||
SaveStateSlot3 = 342
|
|
||||||
SaveStateSlot3Modifier = 4
|
|
||||||
SaveStateSlot4 = 343
|
|
||||||
SaveStateSlot4Modifier = 4
|
|
||||||
SaveStateSlot5 = 344
|
|
||||||
SaveStateSlot5Modifier = 4
|
|
||||||
SaveStateSlot6 = 345
|
|
||||||
SaveStateSlot6Modifier = 4
|
|
||||||
SaveStateSlot7 = 346
|
|
||||||
SaveStateSlot7Modifier = 4
|
|
||||||
SaveStateSlot8 = 347
|
|
||||||
SaveStateSlot8Modifier = 4
|
|
||||||
LoadLastState1 = 0
|
|
||||||
LoadLastState1Modifier = 0
|
|
||||||
LoadLastState2 = 0
|
|
||||||
LoadLastState2Modifier = 0
|
|
||||||
LoadLastState3 = 0
|
|
||||||
LoadLastState3Modifier = 0
|
|
||||||
LoadLastState4 = 0
|
|
||||||
LoadLastState4Modifier = 0
|
|
||||||
LoadLastState5 = 0
|
|
||||||
LoadLastState5Modifier = 0
|
|
||||||
LoadLastState6 = 0
|
|
||||||
LoadLastState6Modifier = 0
|
|
||||||
LoadLastState7 = 0
|
|
||||||
LoadLastState7Modifier = 0
|
|
||||||
LoadLastState8 = 0
|
|
||||||
LoadLastState8Modifier = 0
|
|
||||||
SaveFirstState = 0
|
|
||||||
SaveFirstStateModifier = 0
|
|
||||||
UndoLoadState = 351
|
|
||||||
UndoLoadStateModifier = 0
|
|
||||||
UndoSaveState = 351
|
|
||||||
UndoSaveStateModifier = 4
|
|
||||||
[Display]
|
|
||||||
FullscreenResolution = Auto
|
|
||||||
Fullscreen = False
|
|
||||||
RenderToMain = False
|
|
||||||
RenderWindowXPos = -1
|
|
||||||
RenderWindowYPos = -1
|
|
||||||
RenderWindowWidth = 640
|
|
||||||
RenderWindowHeight = 480
|
|
||||||
RenderWindowAutoSize = False
|
|
||||||
KeepWindowOnTop = False
|
|
||||||
ProgressiveScan = False
|
|
||||||
DisableScreenSaver = True
|
|
||||||
ForceNTSCJ = False
|
|
||||||
[GameList]
|
|
||||||
ListDrives = False
|
|
||||||
ListWad = True
|
|
||||||
ListWii = True
|
|
||||||
ListGC = True
|
|
||||||
ListJap = True
|
|
||||||
ListPal = True
|
|
||||||
ListUsa = True
|
|
||||||
ListAustralia = True
|
|
||||||
ListFrance = True
|
|
||||||
ListGermany = True
|
|
||||||
ListInternational = True
|
|
||||||
ListItaly = True
|
|
||||||
ListKorea = True
|
|
||||||
ListNetherlands = True
|
|
||||||
ListRussia = True
|
|
||||||
ListSpain = True
|
|
||||||
ListTaiwan = True
|
|
||||||
ListUnknown = True
|
|
||||||
ListSort = 3
|
|
||||||
ListSortSecondary = 0
|
|
||||||
[Movie]
|
|
||||||
PauseMovie = False
|
|
||||||
Author =
|
|
||||||
[DSP]
|
|
||||||
EnableJIT = True
|
|
||||||
DumpAudio = False
|
|
||||||
Backend = OpenSLES
|
|
||||||
Volume = 100
|
|
|
@ -45,7 +45,6 @@ public final class AssetCopyService extends IntentService
|
||||||
if(!file.exists())
|
if(!file.exists())
|
||||||
{
|
{
|
||||||
NativeLibrary.CreateUserFolders();
|
NativeLibrary.CreateUserFolders();
|
||||||
copyAsset("Dolphin.ini", ConfigDir + File.separator + "Dolphin.ini");
|
|
||||||
copyAsset("dsp_coef.bin", GCDir + File.separator + "dsp_coef.bin");
|
copyAsset("dsp_coef.bin", GCDir + File.separator + "dsp_coef.bin");
|
||||||
copyAsset("dsp_rom.bin", GCDir + File.separator + "dsp_rom.bin");
|
copyAsset("dsp_rom.bin", GCDir + File.separator + "dsp_rom.bin");
|
||||||
copyAsset("font_ansi.bin", GCDir + File.separator + "font_ansi.bin");
|
copyAsset("font_ansi.bin", GCDir + File.separator + "font_ansi.bin");
|
||||||
|
|
|
@ -10,6 +10,7 @@ import org.dolphinemu.dolphinemu.NativeLibrary;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
|
import android.os.Build;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -39,11 +40,15 @@ public final class UserPreferences
|
||||||
SharedPreferences.Editor editor = prefs.edit();
|
SharedPreferences.Editor editor = prefs.edit();
|
||||||
|
|
||||||
// Add the settings.
|
// Add the settings.
|
||||||
editor.putString("cpuCorePref", getConfig("Dolphin.ini", "Core", "CPUCore", "3"));
|
if (Build.CPU_ABI.contains("arm64"))
|
||||||
|
editor.putString("cpuCorePref", getConfig("Dolphin.ini", "Core", "CPUCore", "4"));
|
||||||
|
else
|
||||||
|
editor.putString("cpuCorePref", getConfig("Dolphin.ini", "Core", "CPUCore", "3"));
|
||||||
|
|
||||||
editor.putBoolean("dualCorePref", getConfig("Dolphin.ini", "Core", "CPUThread", "False").equals("True"));
|
editor.putBoolean("dualCorePref", getConfig("Dolphin.ini", "Core", "CPUThread", "False").equals("True"));
|
||||||
editor.putBoolean("fastmemPref", getConfig("Dolphin.ini", "Core", "Fastmem", "False").equals("True"));
|
editor.putBoolean("fastmemPref", getConfig("Dolphin.ini", "Core", "Fastmem", "False").equals("True"));
|
||||||
|
|
||||||
editor.putString("gpuPref", getConfig("Dolphin.ini", "Core", "GFXBackend", "Software Renderer"));
|
editor.putString("gpuPref", getConfig("Dolphin.ini", "Core", "GFXBackend", "OGL"));
|
||||||
editor.putBoolean("showFPS", getConfig("gfx_opengl.ini", "Settings", "ShowFPS", "False").equals("True"));
|
editor.putBoolean("showFPS", getConfig("gfx_opengl.ini", "Settings", "ShowFPS", "False").equals("True"));
|
||||||
editor.putBoolean("drawOnscreenControls", getConfig("Dolphin.ini", "Android", "ScreenControls", "True").equals("True"));
|
editor.putBoolean("drawOnscreenControls", getConfig("Dolphin.ini", "Android", "ScreenControls", "True").equals("True"));
|
||||||
|
|
||||||
|
|
|
@ -542,6 +542,8 @@ void SConfig::LoadCoreSettings(IniFile& ini)
|
||||||
core->Get("CPUCore", &m_LocalCoreStartupParameter.iCPUCore, SCoreStartupParameter::CORE_JIT64);
|
core->Get("CPUCore", &m_LocalCoreStartupParameter.iCPUCore, SCoreStartupParameter::CORE_JIT64);
|
||||||
#elif _M_ARM_32
|
#elif _M_ARM_32
|
||||||
core->Get("CPUCore", &m_LocalCoreStartupParameter.iCPUCore, SCoreStartupParameter::CORE_JITARM);
|
core->Get("CPUCore", &m_LocalCoreStartupParameter.iCPUCore, SCoreStartupParameter::CORE_JITARM);
|
||||||
|
#elif _M_ARM_64
|
||||||
|
core->Get("CPUCore", &m_LocalCoreStartupParameter.iCPUCore, SCoreStartupParameter::CORE_JITARM64);
|
||||||
#else
|
#else
|
||||||
core->Get("CPUCore", &m_LocalCoreStartupParameter.iCPUCore, SCoreStartupParameter::CORE_INTERPRETER);
|
core->Get("CPUCore", &m_LocalCoreStartupParameter.iCPUCore, SCoreStartupParameter::CORE_INTERPRETER);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue