summaryrefslogtreecommitdiff
path: root/Source/Android/jni/MainAndroid.cpp
AgeCommit message (Collapse)Author
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.
2020-06-21Show file format details in game propertiesJosJuice
2020-04-22Android: Add Install WAD to menu_game_gridRyan Meredith
2020-04-21Merge pull request #8714 from JosJuice/progress-dialog-threadJMC47
DolphinQt: Run tasks that use progress dialogs on separate threads
2020-04-10Android: Reload Wii Remote settings upon saving themRyan Meredith
2020-04-03Remove unused function Host_UpdateProgressDialogJosJuice
2020-03-11Common: Add a render_window field to WindowSystemInfoStenzek
We need this because we need to pass the layer to MoltenVK, not the view handle. But the input subsystem still needs the window.
2019-11-28InputCommon: Decouple ButtonManager and Touchscreen from AndroidOatmealDome
Changes were also made for codestyle compliance.
2019-11-20Android: Let WiimoteEmu know whether we have accelerometer/gyroscopeJosJuice
2019-11-11Merge pull request #8456 from jordan-woyak/input-gate-race-fixConnor McLaughlin
InputCommon: Make the "input gate" not racy.
2019-11-06InputCommon: Make the "input gate" not racey.Jordan Woyak
2019-11-05Android: Replace emulation rotation crash workaround with proper fixJosJuice
The workaround was added in 0446a58. The underlying problem is that we must not destroy the surface while the video backend is initializing, otherwise the video backend may reference nullptr. I've also cleaned up the logic for when to destroy the surface. Note that the comment in EmulationFragment.java about only being able to destroy the surface when emulation is running is not true anymore (due to de632fc, it seems like).
2019-08-21Android: Call UICommon::Init at app start instead of emulation startJosJuice
Much of our native code assumes that UICommon::Init has been called (for reasons such as wanting to access the user's settings), so not calling it until emulation start heavily limits what native code we can use in the Android GUI (except during emulation).
2019-07-02Android: Suggest deleting game INIs if they contain global INI dataJosJuice
2019-06-23Make DolphinAnalytics a true singleton - static local variables are ↵Silent
initialized in a thread safe manner since C++11 Also works around a Visual Studio 2017 bug where static inline class fields are destructed multiple times
2019-06-19Common/MsgHandler: Namespace code within the Common namespaceLioncash
Closes another gap in the Common library where code isn't being namespaced under it.
2019-06-08Merge pull request #8117 from weihuoya/threaded_envConnor McLaughlin
android: get java env from thread local storage
2019-06-07Core/ConfigManager: Use forward declarations where applicableLioncash
Avoids dragging in IniFile, EXI device and SI device headers in this header which is quite widely used throughout the codebase. This also uncovered a few cases where indirect inclusions were being relied upon, which this also fixes.
2019-05-29android: thread local envweihuoya
2019-05-24Update Discord rich presence when the title changesDavid Korth
This allows us to update the rich presence description if a channel is launched from the Wii Menu. It also handles other PPC title launches, e.g. Smash Bros. Masterpieces. Host.h: Added Host_TitleChanged(). DolphinNoGUI/MainNoGUI.cpp: Implemented Host_TitleChanged(). DolphinQt/Host.cpp: Implemented Host_TitleChanged(). Android/jni/MainAndroid.cpp: Stubbed Host_TitleChanged(). DSPTool/StubHost.cpp: Stubbed Host_TitleChanged(). UnitTests/StubHost.cpp: Stubbed Host_TitleChanged().
2019-03-21Core/Host: Allow frontends to block inputsspycrab
2019-01-28Android: Call update touch pointer from thread.zackhow
Fixes crash in single core when attaching the JVM
2019-01-25Android: Use scaledDensity as backbuffer scale (for imgui)Stenzek
2019-01-25Renderer: Use imgui for drawing debug text and OSDStenzek
2019-01-23Android: Normalize pointer touches based on rendered aspect ratiozackhow
This allows the defaults to be actual defaults across devices with different screen sizes
2019-01-19Android: add IR width/height/center option in emu menuzackhow
This sets the IR/Width, IR/Height, and IR/Center per game, so a controller profile is used to save the value, then enable the profile in the game ini, then reload the control configs.
2019-01-04Add Android support for automatic disc changingJosJuice