-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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: Add online system update functionality #10369
Android: Add online system update functionality #10369
Conversation
Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java
Show resolved
Hide resolved
Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java
Outdated
Show resolved
Hide resolved
...a/org/dolphinemu/dolphinemu/features/sysupdate/ui/OnlineUpdateProgressBarDialogFragment.java
Outdated
Show resolved
Hide resolved
.../org/dolphinemu/dolphinemu/features/sysupdate/ui/OnlineUpdateRegionSelectDialogFragment.java
Outdated
Show resolved
Hide resolved
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) | ||
{ | ||
// Rotating the device while the update is running can result in a title failing to import. | ||
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LOCKED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels rather ugly in general. Is there really no better solution? (Not that I can think of what the better solution would be myself...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, the mitigation is the best thing I could come up with, I'm not sure why the update is stopping on rotation. :/
Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/TvMainActivity.java
Outdated
Show resolved
Hide resolved
c62cd20
to
b70d34d
Compare
So, what's up with FifoCI randomly triggering on PRs that don't touch any rendering related code lately? |
b70d34d
to
676527e
Compare
@mbc07 I introduced a new FifoCI worker running on the M1 Mac because I thought it would be useful, but it appears to render odd one pixel differences every run. We're not sure why. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the progress briefly says "NaN %" at the beginning of the update. Though I'm not sure which piece of code is responsible...
Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java
Show resolved
Hide resolved
Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/ContinueLaunchCallback.java
Outdated
Show resolved
Hide resolved
Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/ContinueLaunchCallback.java
Outdated
Show resolved
Hide resolved
Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java
Outdated
Show resolved
Hide resolved
...app/src/main/java/org/dolphinemu/dolphinemu/features/sysupdate/ui/SystemUpdateViewModel.java
Outdated
Show resolved
Hide resolved
Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/main/MainPresenter.java
Outdated
Show resolved
Hide resolved
676527e
to
2360345
Compare
2360345
to
6ba55b8
Compare
d37ca36
to
8c81ef8
Compare
8c81ef8
to
55378ca
Compare
I've addressed all comments. The progress bar is also no longer saying "NaN %" now. |
This PR adds the online system update functionality to the Android version of Dolphin.
Thanks to @OatmealDome for helping me to debug my issues and help me out on the C++ part.
There are two remaining issues:
setRequestedOrientation
. The rotation will be unlocked after the update is done. A log file for this problem can be found here: https://gist.github.com/Simonx22/9dc0f0bd7650d600fbd62f273b4f5d2aScreenshots: