summaryrefslogtreecommitdiffstats
path: root/platform
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #31266 from ↵Rémi Verschelde2019-08-149-29/+0
|\ | | | | | | | | IAmActuallyCthulhu/pr/remove-redundant-author-comments Remove redundant author doc comments
| * Remove redundant author doc commentsIAmActuallyCthulhu2019-08-129-29/+0
| |
* | Merge pull request #31336 from Calinou/scons-libs-use-listsRémi Verschelde2019-08-131-1/+1
|\ \ | | | | | | Always use lists for `LIBS` in SCons
| * | Always use lists for `LIBS` in SConsHugo Locurcio2019-08-121-1/+1
| | | | | | | | | | | | This closes #31288.
* | | https://github.com/godotengine/godot/issues/31297 - HTML5: ↵mellondill2019-08-121-0/+3
|/ / | | | | | | | | | | this.rtenv.callMain is not a function when using latest-upstream backend Added needed changed for normal compiling with emscripten 1.38.41 and later
* / Export: Remove temp files from cache after exportRémi Verschelde2019-08-124-78/+103
|/ | | | | | | | | So far we left most temporary files lying around, so this attempts to fix that. I added a helper method to DirAccess to factor out the boilerplate of creating a DirAccess, checking if the file exists, remove it or print an error on failure.
* OS_X11::set_window_maximized gives up after 0.5sCarl Drougge2019-08-101-3/+6
| | | | | Spinning forever is clearly worse, especially since this happens on at least FVWM even though the window actually is maximized.
* Fix audio capture naming in JavascriptSaracen2019-08-091-4/+2
|
* fix usage of old macro when new variant intendedRobin Hübner2019-08-091-2/+2
|
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in "platform", ↵Robin Hübner2019-08-0913-140/+54
| | | | "modules/gdnative", "modules/gdscript" directories.
* Add feature tag for hmd devices based on DOFCameron Reikes2019-08-071-0/+133
| | | | - Necessary according to https://developers.google.com/vr/develop/android/3dof-to-6dof
* Merge pull request #30468 from SaracenOne/expose_audio_captureRémi Verschelde2019-08-071-3/+3
|\ | | | | Exposes capture methods to AudioServer + documentation
| * Exposes capture methods to AudioServer, variable renames for consistency,Saracen2019-07-151-3/+3
| | | | | | | | added documentation.
* | Merge pull request #31174 from qarmin/thread_sanitizerRémi Verschelde2019-08-072-2/+12
|\ \ | | | | | | Added Thread Sanitizer
| * | Added Thread Sanitizerqarmin2019-08-072-2/+12
| | |
* | | Fix wrong mouse wheel position for MOUSE_MODE_CAPTURED on WindowsTan Wang Leng2019-08-051-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WM_MOUSEWHEEL and WM_MOUSEHWHEEL report mouse coordinates relative to the screen (see lParam in [1]), rather than to the window like the rest of the mouse events. The current code already makes adjustments to take that into account. However, it only makes the adjustments if the mouse is not captured, and the coordinates are always relative to the screen regardless of whether the mouse is captured or not, so let's fix the code to always consistently apply the adjustments. This fixes #29559. [1] - https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-mousewheel
* | Merge pull request #30961 from Calinou/window-size-errorRémi Verschelde2019-07-303-6/+6
|\ \ | | | | | | Turn `OS.set_min/max_window_size()` warnings into errors
| * | Turn `OS.set_min/max_window_size()` warnings into errorsHugo Locurcio2019-07-303-6/+6
| | | | | | | | | | | | | | | | | | Since invalid values will cause the setting to be discarded, it makes more sense to display an error message instead of a warning message.
* | | Android: Remove unusable android_stl=no optionRémi Verschelde2019-07-301-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of 3.1 and later, we have too many thirdparty C++ dependencies and some internal uses of `new` and `delete` too for it to make sense to build without the STL on Android. The option has been broken since 3.0, and the "System STL" that we relied on for basic support of `new` and `delete` is likely to be dropped from the NDK: https://android.googlesource.com/platform/ndk/+/ndk-release-r20/docs/BuildSystemMaintainers.md#System-STL
* | | Android: Drop support for NDK < r15Rémi Verschelde2019-07-302-29/+21
|/ / | | | | | | | | | | NDK r15c was released over two years ago (July 2017), and we cannot build against r14b anyway as it seems to fail with our setup to link the STL.
* | Fix strict-aliasing warning in OS_Windows::get_unix_time.Ibrahn Sahir2019-07-291-2/+10
| |
* | Fix crash caused by a9a0d0fb15cc5e028dbf8dab8b46d3dc197c4678Guilherme Felipe2019-07-243-0/+3
| |
* | Merge pull request #30716 from qarmin/fixed_static_analiser_codeRémi Verschelde2019-07-233-4/+6
|\ \ | | | | | | Fix some code found by Coverity Scan and PVS Studio
| * | Fix some code found by Coverity Scan and PVS Studioqarmin2019-07-233-4/+6
| | |
* | | Fix type mismatch in iOS interface orientation checksRémi Verschelde2019-07-221-1/+1
| | | | | | | | | | | | | | | Not sure why this error popped up when I enabled C++11 on the codebase, but I guess this should fix it.
* | | SCons: Fix uses of [].append instead of env.add_source_files()Rémi Verschelde2019-07-221-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also added support for SCons project-absolute paths (starting with #) and warning about duplicates in add_source_files(), and fixed default_controller_mappings.gen.cpp being included twice after first build due to *.cpp globbing. Part of #30270.
* | | Emscripten: Do not define BINARYEN_TRAP_MODE='clamp'Rémi Verschelde2019-07-221-1/+0
|/ / | | | | | | | | | | | | | | It is not supported in Emscripten's `latest-upstream` LLVM backend, and doesn't seem necessary in the `latest` backend either. It was initially added in #22857 to solve a compilation error with the latter. Part of #30270.
* | Merge pull request #30576 from qarmin/lgtm_coverageRémi Verschelde2019-07-201-1/+2
|\ \ | | | | | | Changed some code reported by LGTM and Coverity
| * | Changed some code showed in LGTM and Coverageqarmin2019-07-201-1/+2
| |/
* | Removed an unused commitunknown2019-07-201-1/+0
| |
* | CameraServer is needed for editor nodeCameron Reikes2019-07-162-0/+5
|/ | | | | | - Editor asks ClassDB for docs - ClassDB asks CameraFeed for default parameters - In CameraFeed's constructor, polls CameraServer
* Merge pull request #30465 from guilhermefelipecgs/cursor_blinkingRémi Verschelde2019-07-108-0/+75
|\ | | | | Fix cursor blinking in integrated GPUs
| * Fix cursor blinking in integrated GPUsGuilherme Felipe2019-07-098-0/+75
| | | | | | | | | | Optimization for Input::set_custom_mouse_cursor when used inside _process function. (Avoids cursor blinking in low end devices)
* | Better detect Emscripten toolchain.Fabio Alessandrelli2019-07-091-2/+7
|/ | | | | | | | | | | | | | | | | Emscripten is apparently changing the variables in its config file, causing potential breakage of our build system. Binaries of the latest/latest-upstream releases are located in a subfolder of BINARYEN_ROOT called emscripten. Binaries of the other releases (e.g. sdk-1.38.31-64bit) are instead placed under the EMSCRIPTEN_ROOT folder. This PR checks if BINARYEN_ROOT has a subfolder called emscripten, if that does not exists, it falls back to checking the EMSCRIPTEN_ROOT. This way we give precedence to the new releases, given that activating multiple releases sequentially might result in having mismatching BINARYEN_ROOT and EMSCRIPTEN_ROOT.
* Merge pull request #30374 from BastiaanOlij/fix_ios_privilegesRémi Verschelde2019-07-082-2/+22
|\ | | | | iOS Microphone and Camera privileges improvements
| * Add microphone privilege settings support back into export and add privilege ↵Bastiaan Olij2019-07-062-2/+22
| | | | | | | | exist check to camera server for iOS
* | Merge pull request #30407 from qarmin/small_fixessRémi Verschelde2019-07-082-1/+2
|\ \ | | | | | | Fixes minor issues found by static analyzer
| * | Fixes minor issues found by static analyzerqarmin2019-07-072-1/+2
| |/
* / Added release function to PoolVector::Access.Ibrahn Sahir2019-07-061-4/+4
|/ | | | | | For clarity, assign-to-release idiom for PoolVector::Read/Write replaced with a function call. Existing uses replaced (or removed if already handled by scope)
* Merge pull request #24086 from RandomShaper/bundle-pck-to-executableRémi Verschelde2019-07-055-0/+212
|\ | | | | Enhance game export
| * Add embedded PCK option to PC platformsPedro J. Estébanez2019-07-035-0/+212
| | | | | | | | | | | | The basic point is as in 2.1 (appending the PCK into the executable), but this implementation also patches a dedicated section in the ELF/PE executable so that it matches the appended data perfectly. The usage of integer types is simplified in existing code; namely, using plain `int` for small quantities.
* | Merge pull request #26674 from hunte922/masterRémi Verschelde2019-07-051-1/+1
|\ \ | | | | | | Hide command prompt launched by OS.execute
| * | Hide command prompt launched by OS.executehoontee2019-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | | Currently, the console appears when running OS.execute in an exported project, but not in the editor. This change prevents it from appearing in either. Only affects console applications.
* | | Remove libwebsocket. No longer used, yay!Fabio Alessandrelli2019-07-043-6/+6
|/ /
* | SCons: Use CPPDEFINES instead of CPPFLAGS for pre-processor definesRémi Verschelde2019-07-039-60/+55
| | | | | | | | | | | | | | | | It's the recommended way to set those, and is more portable (automatically prepends -D for GCC/Clang and /D for MSVC). We still use CPPFLAGS for some pre-processor flags which are not defines.
* | Merge pull request #30258 from m4gr3d/make_metadata_settableRémi Verschelde2019-07-032-5/+11
|\ \ | | | | | | Make the AndroidManifest meta-data name attribute settable.
| * | Make the meta-data name attribute settable. This will facilitate reuse for ↵fhuya2019-07-022-5/+11
| | | | | | | | | | | | ARCore integration.
* | | Merge pull request #30254 from bojidar-bg/30224-docdata-generateRémi Verschelde2019-07-021-0/+2
|\ \ \ | |/ / |/| | Fix various memory leaks and errors
| * | Fix various memory leaks and errorsBojidar Marinov2019-07-021-0/+2
| | |
* | | Merge pull request #30239 from Faless/crypto/crypto_coreRémi Verschelde2019-07-021-9/+5
|\ \ \ | |/ / |/| | CryptoCore class to access to base crypto utils.