summaryrefslogtreecommitdiffstats
path: root/drivers/unix
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Merge pull request #10986 from hpvb/fix-unix-file-openRémi Verschelde2017-09-051-9/+8
|\ | | | | Fix UNIX file open
| * Fix UNIX file openHein-Pieter van Braam2017-09-051-9/+8
| | | | | | | | | | | | | | In #10973 I refactored FileAccessUnix::_open() but I accidentally made it impossible to create new files. This fixes that and fixes #10984
* | Merge pull request #10973 from hpvb/fix-file-access-unixRémi Verschelde2017-09-051-23/+65
|\| | | | | Make UNIX file access more correct
| * Make UNIX file access more correctHein-Pieter van Braam2017-09-041-23/+65
| | | | | | | | Check for errors in the POSIX recommended ways.
* | Merge pull request #10883 from supagu/symlink2Rémi Verschelde2017-09-041-21/+23
|\ \ | |/ |/| Another take at fixing symlinks
| * Another take at fixing symlinksFabian Mathews2017-09-031-21/+23
| |
* | Fix use of unitialized variablesHein-Pieter van Braam2017-09-022-3/+3
|/ | | | The second in my quest to make Godot 3.x compile with -Werror on GCC7
* Merge pull request #10552 from RandomShaper/improve-posixRémi Verschelde2017-08-293-3/+19
|\ | | | | Improve Mac/UNIX conformance/reliability
| * Implement custom thread numbering for POSIXPedro J. Estébanez2017-08-242-2/+16
| | | | | | | | | | | | For every UNIX-derived (Android, Linux, macOS, iOS) flavor, a global counter is atomically incremented on thread start. That id is kept as thread-local storage. Therefore, thread ids are sequential numbers, trivially comparable. This improves the previous state of things, in which `pthread_t` were casted to `Thread::ID` and unportabily compared. Also big, ugly thread ids appeared.
| * Make OS::delay_usec() more reliable on UNIXPedro J. Estébanez2017-08-241-1/+3
| | | | | | | | | | | | | | Implemented with `nanosleep()`. `usleep()` is deprecated. Also loops to ensure that __at least__ the requested time is waited, accounting for spurious interruptions. May help in situations like reattempting to connect to the debugger.
* | Make build scripts Python3 compatibleMatthias Hoelzl2017-08-271-1/+1
| | | | | | | | | | | | | | | | - The Windows, UWP, Android (on Windows) and Linux builds are tested with Scons 3.0 alpha using Python 3. - OSX and iOS should hopefully work but are not tested since I don't have a Mac. - Builds using SCons 2.5 and Python 2 should not be impacted.
* | Dead code tells no talesRémi Verschelde2017-08-271-12/+0
| |
* | Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-2723-23/+23
|/
* Revert "Reworked change_dir to support symlinks"Juan Linietsky2017-08-211-23/+22
|
* Merge pull request #8144 from supagu/symlinkRémi Verschelde2017-08-171-22/+23
|\ | | | | Reworked change_dir to support symlinks
| * Reworked change_dir to support symlinksFabian Mathews2017-04-061-22/+23
| |
* | Synchronize parameter names in definition and declarationTwistedTwigleg2017-08-163-6/+6
| | | | | | | | Fixes #10244.
* | Use const reference where favorableWilson E. Alvarez2017-08-144-4/+4
| |
* | Explicitily unsed AI_NUMERICHOST flag to fix HTML5Fabio Alessandrelli2017-08-111-0/+1
| |
* | Makes all Godot API's methods Lower CaseIndah Sylvia2017-08-074-7/+7
| |
* | added an optional parameter to OS symbol lookupKarroffel2017-07-272-4/+8
| | | | | | | | | | | | | | | | When looking up a symbol from a library, previously an error was shown when the symbol did not exist. That caused confusion when the lookup was completely optional. This adds a new parameter to that method so that those errors can be handled manually if needed.
* | -Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky2017-07-192-10/+3
| | | | | | | | -Added system for feature overrides, it's pretty cool :)
* | -Reorganized all properties of project settings (Sorry, Again).Juan Linietsky2017-07-171-1/+1
| | | | | | | | | | (Lot's of bloat accumulated, so it was time for clean up.) -Made EditorSettings and ProjectSettings search more useful (search in sections too)
* | get_executable_path slight change to make it work under OpenBSDDavid Carlier2017-07-161-2/+2
| |
* | BuildSystem: generated files have .gen.extensionPoommetee Ketson2017-06-251-1/+1
| |
* | Fix local ip addresses (interfaces) detection.Fabio Alessandrelli2017-05-081-4/+11
| | | | | | | | Ignore non-IP addresses for both windows and unix
* | Socket helpers now fall back to ipv4 on systems where ipv6 is disabled.Fabio Alessandrelli2017-05-081-1/+9
| |
* | Fix UDP wait() not returning after first received packetFabio Alessandrelli2017-05-051-0/+2
| |
* | Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei2017-04-101-1/+1
| | | | | | | | | | | | | | | | Control set_pos -> set_position Control set_global_pos -> set_global_position [gs]et_mouse_pos -> [gs]et_mouse_position [gs]et_global_mouse_pos -> [gs]et_global_mouse_position fixes #8005
* | Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-0823-0/+23
| |
* | [DLScript] fixed android builds nowKarroffel2017-04-061-1/+1
| | | | | | | | ... really.
* | added dlscript moduleKarroffel2017-04-031-3/+3
| | | | | | | | | | | | | | | | | | This module was written by bojidar-bg and me, with the help of ClikCode and touilleMan. This adds a module to Godot that enables the use of dynamic libraries as a source for scripts. That also allows third party libraries to be linked to Godot more easily and without creating modules. For a readme see https://github.com/GodotNativeTools/godot_headers/blob/master/README.md
* | increased maximum number of scripting languagesKarroffel2017-04-031-8/+9
| |
* | Added methods for opening dynamic libraries to OSKarroffel2017-03-292-0/+34
|/
* Allow non blocking UDP put_packet in C++.Fabio Alessandrelli2017-03-242-1/+37
| | | | | | - Add blocking mode option to PacketPeerUDP. - put_packet returns ERR_UNAVAILABLE when operation would block. - ENet module uses non-blocking UDP.
* Fix build issue with MSVCRémi Verschelde2017-03-061-1/+2
| | | | windows.h is a mess.
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-0523-702/+570
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code