summaryrefslogtreecommitdiff
path: root/Source/Android/jni/MainAndroid.cpp
AgeCommit message (Collapse)Author
2022-03-10GCAdapter: Defer initialization until MainWindow::InitControllersPokechu22
If libusb fails to initialize, an assertion fails, but if that happens before the main window is created, then Dolphin just dies. Now, the panic alert is properly shown and the user can ignore it.
2022-02-23Merge pull request #10405 from JosJuice/android-no-boot-timeoutJMC47
Android: Get rid of the boot timeout
2022-02-18Port Wiimote source settings to the new config systemJosJuice
This lets us finally get rid of BootManager's ConfigCache!
2022-01-29Android: Get rid of the boot timeoutJosJuice
We don't have a timeout like this on other platforms, and it doesn't accomplish anything useful as far as I can tell. If you trigger it, all that happens is that you don't get a working game and also can't press Exit Emulation without Dolphin hanging (stuck in Core::Shutdown).
2022-01-22Merge pull request #10369 from Simonx22/android-online-system-update-2JMC47
Android: Add online system update functionality
2022-01-21NativeLibrary: Add function to start system menuOatmealDome
2022-01-14Fix static initialisation order fiasco issue for Version variablesLéo Lam
Fixes a crash that could occur if the static constructor function for the MainSettings.cpp TU happened to run before the variables in Common/Version.cpp are initialised. (This is known as the static initialisation order fiasco.) By using wrapper functions, those variables are now guaranteed to be constructed on first use.
2022-01-09Treewide: Remove unused inclusions of <cinttypes>Pokechu22
Most of these became unneeded when fmt was introduced.
2021-12-25Calls to File::SetUserPath() no longer need to manually append directory ↵Admiral H. Curtiss
separators.
2021-11-22Core/Boot: Refactor storage of boot-to-savestate data into a separate class.Admiral H. Curtiss
2021-10-30Android: Allow starting game with Riivolution patches from the GUIJosJuice
2021-10-15Turn MAX_LOGLEVEL into a true constant (and fix self-comparison warning)Léo Lam
This replaces the MAX_LOGLEVEL define with a constexpr variable in order to fix self-comparison warnings in the logging macros when compiling with Clang. (Without this change, the log level check in the logging macros is expanded into something like this: `if (LINFO <= LINFO)`, which triggers a tautological compare warning.)
2021-09-21Android: Don't rely on onPause for pausing before destroying surfaceJosJuice
Fixes a crash which was uncovered (or just made more likely?) by the previous commit.
2021-09-21Android: Remove state from EmulationStateJosJuice
2021-09-21Android: Remove mSurface from EmulationStateJosJuice
2021-07-13Core: Add GBA host interfaceBonta
2021-07-08Android: Avoid crash on early panic alertJosJuice
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-05-27Implement Cursor Locking and new input focus checks for itFiloppi
2021-03-27Set console's default language/country/region based on computer settingsJosJuice
2021-03-04Android: Remove #ifdef __cplusplus checksJosJuice
A C compiler would very much be unable to build this code anyway.
2021-01-27msbuild: bundle all dolphin "core" code into single libraryShawn Hoffman
2021-01-27Android: Move InstallWAD to a new WiiUtils classJosJuice
I'm trying to move away from dumping every native method in NativeLibrary.
2020-11-30Android: Add "Generate a New Statistics Identity"Ryan Meredith
2020-11-09Android: Remove unnecessary ANativeWindow_release callJosJuice
This is already handled by SurfaceDestroyed. In the worst case, the extra code could even race with SurfaceDestroyed if they are triggered at the same time, but this is highly improbable.
2020-11-09Android: Fix rotating EmulationActivity after boot failsJosJuice
Time for yet another new iteration of working around the "surface destruction during boot" problem... This time, the strategy is to use a mutex in MainAndroid.cpp.
2020-11-09Android: Finish EmulationActivity from C++JosJuice
This makes EmulationActivity automatically close if booting fails, and lets us get rid of s_emulation_end_event.
2020-11-07Android: Don't name unused JNIEnv/jobject/jclass parametersJosJuice
2020-11-07Android: Fix jobject/jclass warningsJosJuice
Static methods use jclass, and non-static methods use jobject.
2020-11-06Fix dereferencing nullptr BootParametersJosJuice
2020-10-21Android: Show how long ago each savestate was createdJosJuice
2020-10-21Merge pull request #8893 from JosJuice/android-jni-declarationsLéo Lam
Android: Remove unnecessary JNI function declarations
2020-10-21Android: Don't show game ID after game titleJosJuice
2020-10-21Android: Get game metadata from coreJosJuice
Trying to get it from a GameFile before emulation starts is unreliable.
2020-10-19Android: Remove unnecessary JNI function declarationsJosJuice
We generally have no reason to call these functions on our own, so there's not much reason to declare them, especially not in the cpp file where they're defined. In case we ever do get a reason to do it, we can add declarations for just the functions that need them.
2020-09-25Android: Add "Ignore for this session" to Warning AlertMessagesRyan Meredith
2020-09-25Android: Use DialogFragment for AlertMessageRyan Meredith
2020-09-23Merge pull request #8902 from JosJuice/android-convertJMC47
Android: Add disc image conversion
2020-09-16Android: Add a progress dialog for disc image conversionJosJuice
2020-09-16Android: Add disc image conversionJosJuice
2020-09-16Android: Move OSD out of the way when menu is openJosJuice
https://bugs.dolphin-emu.org/issues/12256
2020-09-15Android: Fix race condition when exiting emulationJosJuice
The main activity loads settings essentially as soon as it starts, in order to determine which tab to show. If the process of stopping emulation has not finished at this point, a race condition may be triggered where two IOS kernels are created at once due to the emulation thread loading or saving the SYSCONF while the GUI thread is loading the SYSCONF. To fix this, we can wait for emulation to fully end before returning. Because this race condition is hard to reproduce, I have not been able to test that this actually fixes the race condition, or even that the cause of the race condition is exactly what I believe it is. But I am relatively confident.
2020-09-12Android: Centralize default values for settingsJosJuice
I was hoping we would be able to pull in the default values from C++, but it seems like more trouble than it's worth, partially because of different settings having default values of different types and partially because we don't have any convenient way to get a list of all C++ settings.
2020-09-06Android: Expose a proper interface for C++ IniFile classJosJuice
Replaces the inflexible INI functions in NativeLibrary.
2020-08-27Android: Better GCAdapter scanning thread managementRyan Meredith
2020-08-09Android: Rewrite GetRenderSurfaceScale in JavaJosJuice
Long sequences of JNI calls are both hard to read and slow.
2020-07-24Android: Add Log Configuration to UIRyan Meredith
2020-07-22Android: Some simple Clang-Tidy suggestionsRyan Meredith
2020-07-12Android: Use system cache directory as cache directoryJosJuice
This lets Android automatically delete data in the cache directory when the device is running low on space or when Dolphin is uninstalled.
2020-06-29Android: Enfore correct stick gate in overlayJosJuice
Currently, the touch controller overlay uses a square gate for sticks. This commit changes that so that it instead uses the stick gate configured in the INI, which ensures that the values sent to the core are appropriately scaled regardless of what is configured in the INI and makes the overlay look nicer if the INI is set to a stick gate that matches the graphics.