summaryrefslogtreecommitdiffstats
path: root/drivers/unix
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix Linux/X11 build on ARMs.bruvzg2018-05-111-1/+1
| |
* | Local debugger fixes and extensionsBlazej Floch2018-05-072-0/+18
| | | | | | | | | | | | | | | | | | - Adds q/quit option to console debugging - Adds options (variable_prefix) - Breaks into debugger with Ctrl-C in local debug mode (Unix/Windows) - Added option to list all breakpoints - Fixes add/remove breakpoint bug (invalid path parsing) - Minor cleanup
* | Merge pull request #18372 from Gamblify/largePckFixRémi Verschelde2018-05-031-3/+3
|\ \ | | | | | | Fix for large .pck files
| * | Fix for large .pck filesGustav Lund2018-05-031-3/+3
| |/ | | | | | | | | An error in unix file IO was causing crashes when getting the size of a file larger than max integer size As ftell returns a long the fix is trivial
* | Merge pull request #18334 from Faless/coverity_netRémi Verschelde2018-05-013-11/+31
|\ \ | | | | | | Various coverity scan fixes, WS FreeBSD fixes
| * | Various coverity scan fixes for networkingFabio Alessandrelli2018-04-213-11/+31
| | | | | | | | | | | | Fix FreeBSD websocket compilation error
* | | GDNative Unix: fix shared lib loading, dlopen expects leading ./ to ↵Robin Hübner2018-04-281-0/+6
| |/ |/| | | | | interpret as relative path.
* | Change ".." punctuation for "..." in editor strings (#16507)Hugo Locurcio2018-04-221-1/+1
|/
* [DOCS] add HTTPRequest.request return valuesPoommetee Ketson2018-04-201-1/+1
|
* Add RWLockDummy for NO_THREADS buildsLeon Krause2018-03-203-3/+4
|
* Merge pull request #17376 from marcelofg55/file_get_pathHein-Pieter van Braam2018-03-152-0/+15
|\ | | | | Added File.get_path and File.get_path_absolute functions
| * Added File.get_path and File.get_path_absolute functionsMarcelo Fernandez2018-03-132-0/+15
| |
* | Merge pull request #16895 from Noshyaar/bmkRémi Verschelde2018-03-131-1/+1
|\ \ | |/ |/| Fix get_drive (bookmarks) in linux not working
| * Fix get_drive (bookmarks) in linux not workingPoommetee Ketson2018-02-211-1/+1
| |
* | Clean and expose get_audio/video_driver_* funcs on OS classMarcelo Fernandez2018-03-042-15/+0
|/
* [X11] Improving error detection in move_to_trashIskustvo2018-02-181-0/+1
|
* Clean up some bad words from code commentsArtem Varaksa2018-02-171-1/+1
|
* fix buffer write performance on Windows and UnixMarcin Zawiejski2018-02-042-0/+6
|
* Display set_nodelay to GDScriptMarlon Henry Schweigert2018-01-302-2/+2
| | | | | | | | | | | Pass enabled arg Rename set_nodelay to set_no_delay Add description to the method Change description
* Fix use of execvp, earlier fix was short sighted and only workedsambler2018-01-081-11/+13
| | | | | | when godot could be found in PATH. The correct fix is to use sysctl to get the path to the current executable this also fixes the ability to call external commands.
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-0523-0/+23
| | | | | | 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.
* Add support from properly exporting shared objects, needed for GDNative exportJuan Linietsky2018-01-041-1/+14
|
* Change OS::initialize signature to return Error (fix segfault on x11)Emmanuel Leblond2018-01-041-1/+1
|
* Fix crash in OS::execute on FreeBSDRémi Verschelde2018-01-041-1/+1
| | | | | As spotted by @robfram, closes #15288. Also reviewed other uses of `if (String.find(.*))` for potential similar mistakes, found a wrong (and useless) one in ScriptEditorDialog.
* Update copyright statements to 2018Rémi Verschelde2018-01-0125-50/+50
| | | | Happy new year to the wonderful Godot community!
* Remove "const" from PacketPeer get_packet/get_varFabio Alessandrelli2017-12-152-7/+7
| | | | | | They are NOT constant methods, as state by the comment message, they fetch the last packet and then forget about it, actively changing the state of the object.
* Drop unused OS_Unix::has_data and related logicRémi Verschelde2017-12-101-32/+2
| | | | Closes #5536.
* Style: Apply new clang-format 5.0 style to all filesRémi Verschelde2017-12-071-4/+1
|
* Style: Apply clang-format again on all filesRémi Verschelde2017-12-072-2/+2
| | | | | Fixes issues introduced by newer clang-format versions or commits pushed directly without using the clang-format pre-commit hook.
* Improve slang, especially in user-visible partsUnknown2017-12-052-3/+3
|
* Changed the dynamic library open function to allow setting the path of the ↵Juan Linietsky2017-11-302-2/+2
| | | | library to open extra libraries.
* Allow customizing user:// path (folder in OS::get_data_path())Rémi Verschelde2017-11-261-5/+9
| | | | | | | | 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.
* Return and repair file loggingRuslan Mustakov2017-11-212-10/+8
| | | | And make it configurable, too.
* Add initial support for the XDG Base Directory specRémi Verschelde2017-11-193-33/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-172-2/+2
| | | | | 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/+0
| | | | | | | | 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.
* Disable logging until the logs location is sorted outRémi Verschelde2017-10-291-1/+3
| | | | Temporary workaround for #12277.
* Use execvp instead of execv to allow OS.execute() to search through PATH.Elia Argentieri2017-10-111-1/+1
| | | | Fix #12003.
* OS::execute can now read from stderr too when executing with a pipeMarcelo Fernandez2017-10-032-3/+7
|
* Extract logging logicRuslan Mustakov2017-09-256-57/+174
| | | | | | | | | | | | | | | | | | | 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.
* Rename pos to position in user facing methods and variablesletheed2017-09-202-2/+2
| | | | | | | | | | | 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 x11 exported executables not getting the +x flagMarcelo Fernandez2017-09-172-0/+11
|
* Only do 'drive' discovery on X11Hein-Pieter van Braam2017-09-141-4/+5
| | | | | | | | | | | | | As it turns out older versions of the Android NDK have mntent.h but not a complete implementation. If it did work it would most likely give the wrong results on Android anyway. This commit enables the UNIX drive discovery only for X11 We also missed '/run/media' (default for gnome desktops) in the list of places to look for 'drives' on Linux. Add that to the list also. This fixes #11270
* Merge pull request #11160 from marcelofg55/drive_funcs_x11Rémi Verschelde2017-09-132-2/+93
|\ | | | | Implemented DirAccess get_drive and get_drive_count for Linux
| * Implemented DirAccess get_drive and get_drive_count for LinuxMarcelo Fernandez2017-09-122-2/+93
| |
* | Merge pull request #10908 from hpvb/fix-unused-variablesRémi Verschelde2017-09-121-1/+0
|\ \ | | | | | | Fix unused variable warnings
| * | Fix unused variable warningsHein-Pieter van Braam2017-09-081-1/+0
| |/ | | | | | | The forth in my quest to make Godot 3.x compile with -Werror on GCC7
* / DirAccess constructor sets current_dir to an absolute pathsupagu2017-09-101-14/+6
|/
* Fix EOF in wav file importerHein-Pieter van Braam2017-09-071-4/+2
| | | | | | | | | | In #10973 I reset the state of the stream in get_pos() assuming that the ftell failing would cause proper error checking. This is not how this class was designed, however. This commit fixes the get_8() method to not return unitialized data on eof, and removes the wrong error resets added in #10973. This fixes #11022
* Further symlink fixessupagu2017-09-061-16/+26
|