aboutsummaryrefslogtreecommitdiff
path: root/core/os
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #13130 from endragor/gdnative-android-exportRémi Verschelde2017-11-211-1/+1
|\ | | | | Proper GDNative export on Android
| * Proper GDNative export on AndroidRuslan Mustakov2017-11-211-1/+1
| |
* | Merge pull request #11933 from cxong/masterJuan Linietsky2017-11-213-12/+40
|\ \ | | | | | | Use "Command" instead of "Meta" for macOS (#1619)
| * | Use "Command" instead of "Meta" for macOS (#1619)Cong2017-10-083-12/+40
| | |
* | | Merge pull request #13133 from endragor/resurrect-file-loggingRémi Verschelde2017-11-212-7/+17
|\ \ \ | | | | | | | | Return and repair file logging
| * | | Return and repair file loggingRuslan Mustakov2017-11-212-7/+17
| | |/ | |/| | | | | | | And make it configurable, too.
* / | Native pan and zoom for macOSBernhard Liebl2017-11-212-8/+122
|/ /
* | Allow configuring iOS exportRuslan Mustakov2017-11-213-0/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - EditorExportPlugin's _export_begin accepts all the arguments related to the current export (is_debug, path, flags). - EditorExportPlugin API is extended with methods allowing to configure iOS export: add_ios_framework, add_ios_plist_content, add_ios_linker_flags, add_ios_bundle_file. - iOS export template now contains Godot as a static library so that it can be linked with third-party Frameworks and GDNative static libraries. - Adds method to DirAccess for recursive copying of a directory. - Fixes iOS export to work with Xcode 9 (released recently).
* | Merge pull request #12387 from santouits/x1111Rémi Verschelde2017-11-201-1/+3
|\ \ | | | | | | Fix x11 boot logo position in fullscreen and in maximized
| * | Fix x11 boot logo position in fullscreen and in maximizedsantouits2017-10-261-1/+3
| | |
* | | Merge pull request #13006 from hoelzl/pr-placement-deleteRémi Verschelde2017-11-202-0/+28
|\ \ \ | | | | | | | | Add placement deletes to avoid warnings on VC++
| * | | Add placement deletes to avoid warnings on VC++Matthias Hoelzl2017-11-192-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When compiling with VC++ 2017, Godot generates huge numbers of C4291 warnings about missing placement delete. I have not found a way to disable these warnings using compiler options: AFAICT there is no equivalent to `-f-no-exceptions` for VC++ (there is only /EH to change the exception-handling model, /GX is deprecated) and adding /wd4291 to the `disable_nonessential_warnings` list in the `SConstruct` file or even compiling with `warnings=no` does not disable the messages. Placement delete is only called when placement new throws an exception, since Godot doesn't use exceptions this change should have no runtime effect. Fixes #12654 (probably, difficult to say without log)
* | | | Pass engine name and version parts as proper stringsRémi Verschelde2017-11-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Removes the need for _MKSTR all over the place which has the drawback of converting _MKSTR(UNKNOWN_DEFINE) to "UKNOWN_DEFINE" instead of throwing a compilation error.
* | | | Add initial support for the XDG Base Directory specRémi Verschelde2017-11-192-13/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spec version 0.7 from https://standards.freedesktop.org/basedir-spec/basedir-spec-0.7.html (latest as of this commit). Three virtual methods are added to OS for the various XDG paths we will use: - OS::get_data_path gives XDG_DATA_HOME, or if missing: ~/.local/share on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows - OS::get_config_path gives XDG_CONFIG_HOME, or if missing: ~/.config on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows - OS::get_cache_path gives XDG_CACHE_HOME, or if missing: ~/.cache on X11, ~/Library/Caches on macOS and %APPDATA% on Windows So for Windows there are no changes, for Linux we follow the full split spec and for macOS stuff will move from ~/.godot to ~/Library/Application Support/Godot. Support for system-wide installation of templates on Unix was removed for now, as it's a bit hackish and I don't think anyone uses it. user:// will still be OS::get_data_path() + "/godot/app_userdata/$name" by default, but when using the application/config/use_shared_user_dir option it will now use XDG_DATA_HOME/$name, e.g. ~/.local/share/MyGame. For now everything still goes in EditorSettings::get_settings_dir(), but this will be changed in a later commit to make use of the new splitting where relevant. Part of #3513.
* | | | Rename OS::get_data_dir to OS::get_user_data_dirRémi Verschelde2017-11-174-8/+8
|/ / / | | | | | | | | | | | | Will be needed to avoid confusion with system data path (XDG_DATA_HOME) and editor data dir in upcoming refactoring.
* | | Remove get_default_video_mode definition on OSX/iOSRémi Verschelde2017-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It had been missed in d09160a8b67fdc60e8108962c4e9bd4c0bc7f13e and broke compilation for those platforms. Took the opportunity to run clang-format on the code base to fix some corner cases that went through our static tests/were overlooked recently.
* | | Make video mode initialization more intuitive, fixes #12022Juan Linietsky2017-11-091-3/+1
| | |
* | | Increase joystick axis from 8 to 10Bastiaan Olij2017-11-081-1/+3
| | |
* | | Add Colemak keybindings to editor for osxN0hbdy2017-10-302-0/+23
|/ /
* | move button/joy constants to enumsjagt2017-10-231-2/+2
| |
* | Bind MainLoop.notif_wm_go_back_requestPoommetee Ketson2017-10-221-0/+1
| |
* | Fix InputEventJoypadMotion::action_match for 0 axis values.Patrick Yates2017-10-211-1/+1
| | | | | | | | | | | | Make action_match ignore the sign if axis value is 0. This means that an axis value of 0 will match actions defined for both positive and negative values, as expected. Fixes #12223
* | Merge pull request #12039 from Hinsbart/expose_joy_connectionRémi Verschelde2017-10-111-0/+1
|\ \ | | | | | | | | | | | | Input: expose joy_connection_changed() [ci skip]
| * | Input: expose joy_connection_changed()Andreas Haas2017-10-111-0/+1
| |/
* | Merge pull request #11810 from marcelofg55/osx_export_improvRémi Verschelde2017-10-091-1/+1
|\ \ | |/ |/| OS X export code improvements
| * OS::execute can now read from stderr too when executing with a pipeMarcelo Fernandez2017-10-031-1/+1
| |
* | Make sure to obey hidpi to off by default, as present in project settings. ↵Juan Linietsky2017-10-051-1/+1
| | | | | | | | | | | | Set it to on by default for editor. Many integrated GPUs can't really get enough performance to play games at hidpi, so this should be enabled manually.
* | Merge pull request #11823 from endragor/virtual-keyboard-heightGilles Roudiere2017-10-042-0/+7
|\ \ | | | | | | Allow to obtain virtual keyboard height
| * | Allow to obtain virtual keyboard heightRuslan Mustakov2017-10-042-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | On mobile platforms virtual keyboards take up significant amount of screen space and UI containing a text box may need to be adjusted after the keyboard appears to keep the text box visible to user. This commit adds a way to obtain virtual keyabord height so that controls are aware of how much they need to move.
* | | fixed the OS.has_feature() API, and added support for 32 and 64.Juan Linietsky2017-10-032-2/+9
| |/ |/|
* | Merge pull request #11782 from eska014/persistent-userfs-testHein-Pieter van Braam2017-10-031-0/+2
|\ \ | |/ |/| Add OS::is_userfs_persistent, allow starting HTML5 platform in private mode
| * Add OS::is_userfs_persistent to check user:// persistenceLeon Krause2017-10-021-0/+2
| | | | | | | | Allows starting HTML5 export when IndexedDB is not available.
* | Merge pull request #11568 from endragor/loggersAndreas Haas2017-10-024-28/+30
|\ \ | | | | | | Extract logging logic
| * | Extract logging logicRuslan Mustakov2017-09-254-28/+30
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously logging logic was scattered over OS class implementations with plenty of duplication. Major changes in this commit: - Extracted logging logic into a separate Logger hierarchy. It allows easy configuration of logging mechanism depending on compile-time or run-time configuration. - Implemented RotatedFileLogger which is usually used with StdLogger, providing persistency of logs. It is often important to be able to obtain logs of the game even in production to be able to understand what happened prior to some problem. On mobile there previously was no way to obtain the logs aside from having the device connected to your machine. - flush() is not performed in release mode for every logged line. It is only performed for errors.
* / FileSystemDock will now remove files/dirs to trashcan using OS::move_to_trashMarcelo Fernandez2017-09-251-0/+2
|/
* Rename pos to position in user facing methods and variablesletheed2017-09-206-6/+6
| | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* Fix MSVC compilation errorsKonstantin Zaitsev2017-09-191-1/+1
|
* Fix x11 exported executables not getting the +x flagMarcelo Fernandez2017-09-173-2/+9
|
* Merge pull request #11230 from maxim-sheronov/fix_enum_bindingsThomas Herzog2017-09-153-46/+11
|\ | | | | Fix enums bindings
| * Fix enums bindingsMaxim Sheronov2017-09-133-46/+11
| | | | | | | | | | Add missed bindings for enums Move some enums to class to have correct output of api.json
* | Added a crash handler to dump the backtrace on Windows, Linux and OS XMarcelo Fernandez2017-09-131-0/+3
| |
* | Style: Apply clang-format to @reduz's changesRémi Verschelde2017-09-131-1/+1
| | | | | | | | [ci skip]
* | Changed the doc class generation to individual files per class. It is also ↵Juan Linietsky2017-09-121-0/+1
|/ | | | | | possible to save module files in module directories and the build system will recognize them.
* Fix use of unitialized variablesHein-Pieter van Braam2017-09-021-1/+2
| | | | The second in my quest to make Godot 3.x compile with -Werror on GCC7
* Dead code tells no talesRémi Verschelde2017-08-271-22/+1
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-2732-32/+32
|
* Convert Object::cast_to() to the static versionHein-Pieter van Braam2017-08-241-1/+1
| | | | | | | | | | | | Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
* Show proper string with InputEvent.as_text()volzhs2017-08-252-0/+84
|
* Merge pull request #10487 from marcelofg55/curscr_as_defaultRémi Verschelde2017-08-221-3/+3
|\ | | | | p_screen param from get_screen_* funcs now default to the current screen
| * p_screen param from get_screen_* funcs now default to the current screenMarcelo Fernandez2017-08-211-3/+3
| |