summaryrefslogtreecommitdiff
path: root/Source/Android/jni/MainAndroid.cpp
AgeCommit message (Collapse)Author
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
2018-10-28Android: Speed up game settings savingzackhow
Previously would take several seconds to save, sometimes causing ANRs, which was made worse when adding all the controller values. Now we only load/save each section instead of doing it for each setting. Also added a method to save an individual setting.
2018-10-28Android: Add game specific gc/wii controller settingszackhow
2018-10-27android: remove enter and exit transitionweihuoya
2018-10-20VideoBackends: Pass window system info from host on creationStenzek
2018-10-20Drop Host_GetRenderSurface and pass display to backendStenzek
2018-10-20Refactoring and cleanup of GLInterface (now GLContext)Stenzek
2018-10-12Merge pull request #7437 from stenzek/graphics-options-raceMat M
Fix race condition caused by opening graphics options while running
2018-09-28Remove unused Host_ShowVideoConfigStenzek
2018-09-14Android: Run Directory Initialization as a thread instead of servicezackhow
Two reasons for this change. First, it appears that some android launchers do some sort of call into the application when long pressing the app icon, which in turn calls the DirectoryInit service. This was ok to do prior to Oreo but will cause crashes with the new restrictions on services running in the background. Which leads to the second reason that DirectoryInit doesn't need to be a service at all since these actions are required for dolphin to function and shouldn't be a scheduled action. So we instead just kick this off in a new thread and send the broadcast when done.
2018-08-27Profiler: Migrate global g_ProfileBlocks boolean to JitOptionsLioncash
This global belongs in the JitOptions structure, as it's a conditional setting (A.K.A. option) that changes the behavior of what the JIT does. Plus it keeps the scope of the variable constrained to the general area it's intended to be used and nothing further.
2018-08-23Android: Add usage statistics to android.zackhow
Added an option in General config to enable/disable usage statistics. Added a popup on first open if the user would like to engage in reporting. Clicking cancel or out of the box opts out. Only clicking 'Ok' will enable reporting. Also added a new android specific values to report.
2018-06-15PowerPC: Convert CPUCore enum into an enum classLioncash
Makes the enum values strongly-typed and prevents the identifiers from polluting the PowerPC namespace. This also cleans up the parameters of some functions where we were accepting an ambiguous int type and expecting the correct values to be passed in. Now those parameters accept a PowerPC::CPUCore type only, making it immediately obvious which values should be passed in. It also turns out we were storing these core types into other structures as plain ints, which have also been corrected. As this type is used directly with the configuration code, we need to provide our own overloaded insertion (<<) and extraction (>>) operators in order to make it compatible with it. These are fairly trivial to implement, so there's no issue here. A minor adjustment to TryParse() was required, as our generic function was doing the following: N tmp = 0; which is problematic, as custom types may not be able to have that assignment performed (e.g. strongly-typed enums), so we change this to: N tmp; which is sufficient, as the value is attempted to be initialized immediately under that statement.
2018-06-06Use UICommon's game list code on AndroidJosJuice
Deduplicates code, and gets rid of some problems the old code had (such as: bad performance when calling native functions, only one disc showing up for multi-disc games, Wii banners being low-res, unnecessarily much effort being needed for adding more metadata).
2018-05-28Common: Move host communication enum to Host.hLioncash
Given this is actually a part of the Host interface, this should be placed with it. While we're at it, turn it into an enum class so that we don't dump its contained values into the surrounding scope. We can also make Host_Message take the enum type itself directly instead of taking a general int value. After this, it'll be trivial to divide out the rest of Common.h and remove the header from the repository entirely
2018-05-20Reimplement custom PNG banners in game listJosJuice
Fixes https://bugs.dolphin-emu.org/issues/10938 and makes PNG banners available in DolphinQt2 for the first time.
2018-04-17Fix some warningsTillmann Karras
2018-04-03Fix build error on AndroidJosJuice
Caused by 4387432.
2018-03-31Remove dead codeLéo Lam
Unused, old code that is intended to be removed should not be left in comments -- that is what version control is for.
2018-03-31DiscIO: Don't use all uppercase for enum valuesJosJuice
Also removing some prefixes that we don't need now that we're using enum classes instead of plain enums.
2018-02-16Android: Implement game-specific settings overrides UIGreg Wicks
2018-01-21Android: Support change discmahdihijazi
2018-01-10Added an actual implementation for yes/no dialogs on Android using ↵34will
Object.wait and Object.notify. Modified NativeLibrary to display alerts in AlertDialogs rather than Toast notifications, and allow yes/no options. Modified MainAndroid to use the new displayAlertMsg, and to return its output.
2018-01-05Merge pull request #6270 from mahdihijazi/suppport_restore_stateMarkus Wick
[Android] Support restore emulator state
2017-12-28Optionally delete savestate that gets loaded at bootJosJuice
2017-12-28MainAndroid: Don't set User directory redundantlyJosJuice
2017-12-27MainAndroid: Optionally wait for savestate to finish writingJosJuice
2017-12-27MainAndroid: Allow specifying savestate to load at bootJosJuice
2017-12-27MainAndroid: Add wrapper for Core::IsRunningJosJuice
2017-12-27MainAndroid: Allow specifying path for savestatesJosJuice
2017-12-26Android: Don't extract Sys if it already is extractedJosJuice