Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Support arguments from Activity Monitor. #2144

Merged
merged 1 commit into from
Mar 8, 2015

Conversation

Sonicadvance1
Copy link
Contributor

Activity Monitor can start activities by using adb to invoke it.
This will allow us to set the user directory and autostart file from adb.

adb shell am start -n org.dolphinemu.dolphinemu/.gamelist.GameListActivity -e AutoStartFile /sdcard/AC.gcz -e UserDir /sdcard/dolphin-emu2/

This allows more automated testing to be done with Dolphin on Android.

String BaseDir = Environment.getExternalStorageDirectory() + File.separator + "dolphin-emu";
String BaseDir;
final String DefaultDir = Environment.getExternalStorageDirectory() + File.separator + "dolphin-emu";
if ((BaseDir = NativeLibrary.GetUserDirectory()) == "")

This comment was marked as off-topic.

@Sonicadvance1
Copy link
Contributor Author

Also fixes a terrible bug in Android where the user path never gets set and it breaks it.

@Sonicadvance1 Sonicadvance1 force-pushed the android_autostart branch 3 times, most recently from 0c7a8d9 to 17e4bc0 Compare March 2, 2015 09:00
@heinermann
Copy link

@heinermann
Copy link

Verified the game list is restored on Android devices.

Activity Monitor can start activities by using adb to invoke it.
This will allow us to set the user directory and autostart file from adb.

adb shell am start -n org.dolphinemu.dolphinemu/.gamelist.GameListActivity -e AutoStartFile /sdcard/AC.gcz -e UserDir /sdcard/dolphin-emu2/

This allows more automated testing to be done with Dolphin on Android.
Sonicadvance1 added a commit that referenced this pull request Mar 8, 2015
[Android] Support arguments from Activity Monitor.
@Sonicadvance1 Sonicadvance1 merged commit a984b24 into dolphin-emu:master Mar 8, 2015
@Sonicadvance1 Sonicadvance1 deleted the android_autostart branch March 8, 2015 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants