aboutsummaryrefslogtreecommitdiff
path: root/core/os (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #17311 from marcelofg55/export_err_checksRémi Verschelde2018-03-131-3/+4
|\ | | | | Improved error checking at EditorExportPlatformPC::export_project
| * Improved error checking at EditorExportPlatformPC::export_projectMarcelo Fernandez2018-03-061-3/+4
| |
* | Reinstate WebGL 1.0 driver in HTML5 platformLeon Krause2018-03-071-1/+2
|/
* Clean and expose get_audio/video_driver_* funcs on OS classMarcelo Fernandez2018-03-042-6/+40
|
* (Magnify|Pan)Gesture: implement as_textPoommetee Ketson2018-02-242-0/+12
|
* Merge pull request #15564 from RandomShaper/adpod-topmostRémi Verschelde2018-02-141-1/+5
|\ | | | | Add new window setting: always on top
| * Add new window setting: always on topPedro J. Estébanez2018-01-051-1/+5
| | | | | | | | Implemented for Windows and Linux.
* | Added OS::center_window to center the window precisely on desktop platformsMarcelo Fernandez2018-02-122-0/+13
| |
* | Mono: Allow loading `mscorlib` from resources.bruvzg2018-01-311-0/+3
| |
* | - Improves portability in joystick buttons enumAriel Manzur2018-01-241-2/+2
|/ | | | - Fixes linking bug in modules split library
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-0533-2/+61
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Change OS::initialize signature to return Error (fix segfault on x11)Emmanuel Leblond2018-01-041-1/+1
|
* found via cppcheck:firefly24422018-01-032-5/+5
| | | | | | | remove code that will never run make definition and declaration names for parameters match change floats that were being set to bool values remove pointer that is never used
* Merge pull request #12814 from guilhermefelipecgs/add_hardware_custom_cursorRémi Verschelde2018-01-033-2/+44
|\ | | | | Custom hardware-accelerated mouse cursor
| * Add implementation for custom hardware cursorGuilherme Silva2017-12-173-2/+44
| |
* | Update copyright statements to 2018Rémi Verschelde2018-01-0131-62/+62
| | | | | | | | Happy new year to the wonderful Godot community!
* | Reimport now checks source path changes and imported files and their md5, ↵Juan Linietsky2017-12-272-0/+32
| | | | | | | | fixes #14728
* | Removed the InputEvent ID field, which was unused and can cause bugs.Juan Linietsky2017-12-262-22/+0
| |
* | -Removed OpenMP support, replaced by a custom class.Juan Linietsky2017-12-242-0/+82
|/ | | | -Disabled Opus, implementation is wrong.
* Merge pull request #14635 from poke1024/getlineRémi Verschelde2017-12-171-1/+54
|\ | | | | Faster FileAccess::get_line()
| * Faster FileAccess::get_line()poke10242017-12-161-1/+54
| |
* | Add epic hack so vsync can be toggled in run-time from script. Fixes #14458.Juan Linietsky2017-12-162-3/+21
| | | | | | | | Call needs to be routed via visual server to reach the proper thread.
* | Remove get_stack_bottomRuslan Mustakov2017-12-162-11/+0
| | | | | | | | | | It's not used in godot-nim any longer and there were no other uses for it.
* | Fix type mismatch in OS::set_borderless_windowRémi Verschelde2017-12-141-1/+1
| | | | | | | | Closes #14663.
* | -Add lightmapperJuan Linietsky2017-12-141-0/+1
|/ | | | | | -Fixes to unwrapper (remove degenerates), makes Thekla not crash -Added optional cancel button in EditorProgress -Added function to force processing of events (needed for cancel button)
* Fixes vsync setting ignored when using a separate thread for renderingStefano Bonicatti2017-12-091-1/+3
| | | | | | | | | Setting the vsync in the main thread, after the rendering thread starts and takes the OpenGL context fails, so we need to do that before. Also, for some reason, the main thread cannot make current the context anymore. Fixes #13447
* Style: Apply clang-format again on all filesRémi Verschelde2017-12-071-1/+1
| | | | | Fixes issues introduced by newer clang-format versions or commits pushed directly without using the clang-format pre-commit hook.
* Fix Windows-to-Linux export errorPedro J. Estébanez2017-12-062-1/+4
| | | | Now chmod() returns ERR_UNAVAILABLE by default, to signal the caller the problem is lack of support instead of a failed operation.
* Changed the dynamic library open function to allow setting the path of the ↵Juan Linietsky2017-11-301-1/+1
| | | | library to open extra libraries.
* Allow customizing user:// path (folder in OS::get_data_path())Rémi Verschelde2017-11-262-8/+16
| | | | | | | | This allows to specify any valid folder name (including with subfolders) to use as user:// on all platforms. The folder is constrained to the platform-specific OS::get_data_path() (typically what `XDG_DATA_HOME` resolves to). Fixes #13236.
* Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky2017-11-251-1/+1
| | | | | | wrong function, leading to unnecesary copy on writes and reduced performance.
* Core: Bind InputEventGesture events.Andreas Haas2017-11-242-0/+33
|
* Modified low processor sleep to 8000 and made it customizable (should be ↵Juan Linietsky2017-11-222-0/+14
| | | | customizable for editor too)
* 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
| | |