mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Android: Fix the logic for getting the Riivolution path
There is a Load path setting, so the Load part can't just be hardcoded.
This commit is contained in:
parent
b4c7f2b1e8
commit
5dd07f73d4
@ -15,6 +15,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
|||||||
import org.dolphinemu.dolphinemu.R;
|
import org.dolphinemu.dolphinemu.R;
|
||||||
import org.dolphinemu.dolphinemu.activities.EmulationActivity;
|
import org.dolphinemu.dolphinemu.activities.EmulationActivity;
|
||||||
import org.dolphinemu.dolphinemu.features.riivolution.model.RiivolutionPatches;
|
import org.dolphinemu.dolphinemu.features.riivolution.model.RiivolutionPatches;
|
||||||
|
import org.dolphinemu.dolphinemu.features.settings.model.StringSetting;
|
||||||
import org.dolphinemu.dolphinemu.utils.DirectoryInitialization;
|
import org.dolphinemu.dolphinemu.utils.DirectoryInitialization;
|
||||||
|
|
||||||
public class RiivolutionBootActivity extends AppCompatActivity
|
public class RiivolutionBootActivity extends AppCompatActivity
|
||||||
@ -51,9 +52,12 @@ public class RiivolutionBootActivity extends AppCompatActivity
|
|||||||
int revision = intent.getIntExtra(ARG_REVISION, -1);
|
int revision = intent.getIntExtra(ARG_REVISION, -1);
|
||||||
int discNumber = intent.getIntExtra(ARG_DISC_NUMBER, -1);
|
int discNumber = intent.getIntExtra(ARG_DISC_NUMBER, -1);
|
||||||
|
|
||||||
|
String loadPath = StringSetting.MAIN_LOAD_PATH.getStringGlobal();
|
||||||
|
if (loadPath.isEmpty())
|
||||||
|
loadPath = DirectoryInitialization.getUserDirectory() + "/Load";
|
||||||
|
|
||||||
TextView textSdRoot = findViewById(R.id.text_sd_root);
|
TextView textSdRoot = findViewById(R.id.text_sd_root);
|
||||||
String riivolutionPath = DirectoryInitialization.getUserDirectory() + "/Load/Riivolution";
|
textSdRoot.setText(getString(R.string.riivolution_sd_root, loadPath + "/Riivolution"));
|
||||||
textSdRoot.setText(getString(R.string.riivolution_sd_root, riivolutionPath));
|
|
||||||
|
|
||||||
Button buttonStart = findViewById(R.id.button_start);
|
Button buttonStart = findViewById(R.id.button_start);
|
||||||
buttonStart.setOnClickListener((v) ->
|
buttonStart.setOnClickListener((v) ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user