Hein-Pieter van Braam
a34afa3820
Implement OS::get_processor_count() for Windows
...
Current this is hardcoded as '1' for any platform except Unix. The
little is_wow64() dance is required to get correct output on a 32bit
compiled godot running on 64bit Windows according to MSDN.
This code should be UWP safe but I have no way to test that so it's not
implemented for UWP yet.
(cherry picked from commit b4d369c887
)
2018-01-30 20:56:53 +01:00
Rémi Verschelde
f12e8568d4
Merge pull request #16081 from djgaspa/dll-directory
...
Fix remove_dll_directory crash when cookie is null
2018-01-27 23:32:05 +01:00
Hein-Pieter van Braam
c6d9a7665a
Make separate debug symbols opt-in
...
This adds a separate_debug_symbols option to the x11, windows, and osx
targets. This will default to adding normal debugging symbols to the
artifacts and only splits them when separate_debug_symbols=yes on the
Scons command line.
2018-01-26 20:46:56 +01:00
djgaspa
18e66a28bc
Fix remove_dll_directory crash when cookie is null
2018-01-26 12:30:02 +01:00
binbitten
017a8521c0
Fix horizontal scroll for windows platform
2018-01-20 21:15:58 +01:00
Juan Linietsky
554e95747c
sorry, accidentally pressed delete before commiting.
2018-01-10 17:55:00 -03:00
Juan Linietsky
0f00384c93
Added middle button doubleclick, fixes #15567
2018-01-10 17:46:41 -03:00
Rémi Verschelde
db49f35ab8
SCons: Fix usage of LD when we meant LINK
...
Also made LINK and CXXFLAGS configurable as command line options.
Note that LINK currently expects the *compiler* that will be used
for linking and will call its configured linker behind the scenes
(so g++, clang++, etc., not ld.gold). See #15364 for details.
2018-01-05 20:37:45 +01:00
Juan Linietsky
7332da31fc
Forced set mouse global position always, hopefully will fix #15354 , otherwise out of luck.
2018-01-05 14:33:13 -03:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
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.
2018-01-05 01:22:23 +01:00
Juan Linietsky
6e2ed15ff1
Add support from properly exporting shared objects, needed for GDNative export
2018-01-04 15:43:06 -03:00
Emmanuel Leblond
e315c94900
Change OS::initialize signature to return Error (fix segfault on x11)
2018-01-04 15:15:55 +01:00
Rémi Verschelde
6322b0bbb7
Merge pull request #12814 from guilhermefelipecgs/add_hardware_custom_cursor
...
Custom hardware-accelerated mouse cursor
2018-01-03 08:35:59 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
George Marques
abf416f922
Improve LTO build with MSVC
2017-12-31 14:35:38 -02:00
Juan Linietsky
021f3c924b
-Removed OpenMP support, replaced by a custom class.
...
-Disabled Opus, implementation is wrong.
2017-12-24 09:32:12 -03:00
Rémi Verschelde
bf4d398d4e
Do not require OpenMP for non-tools builds (export templates)
2017-12-22 12:24:40 +01:00
Guilherme Silva
a392dbdbe3
Add implementation for custom hardware cursor
2017-12-17 13:40:29 -02:00
George Marques
f1683a290b
Add support for whole program optimization on MSVC
...
Since it's similar to LTO, it can be enabled by setting use_lto=yes.
2017-12-16 22:29:02 -02:00
Juan Linietsky
652c98a7be
Add epic hack so vsync can be toggled in run-time from script. Fixes #14458 .
...
Call needs to be routed via visual server to reach the proper thread.
2017-12-16 17:11:02 -03:00
Hein-Pieter van Braam
05018582d7
Rename the debug symbol files to .debugsymbols
...
Some users were confused by the '.debug' suffix for the symbols.
2017-12-16 13:55:04 +01:00
Rémi Verschelde
cf7bd1a7e3
Merge pull request #14708 from Faless/get_packet_not_const_rebased
...
Remove "const" from PacketPeer get_packet/get_var, move windows network related stuff to drivers
2017-12-16 00:05:18 +01:00
Hein-Pieter van Braam
241de95884
Fix 32bit MingW build for thekla_altas
2017-12-15 23:26:10 +01:00
Fabio Alessandrelli
ac7444023e
Move windows networking class to drivers/windows/
...
Also rename stream_peer_winsock.* to stream_peer_tcp_winsock.* and
StreamPeerWinsock to StreamPeerTCPWinsock.
2017-12-15 18:25:29 +01:00
Fabio Alessandrelli
92067b4714
Remove "const" from PacketPeer get_packet/get_var
...
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.
2017-12-15 17:14:17 +01:00
Rémi Verschelde
c0beab6c5b
Remove debug printf on Windows
2017-12-15 07:56:47 +01:00
Rémi Verschelde
fb84b49d87
Fix type mismatch in OS::set_borderless_window
...
Closes #14663 .
2017-12-14 19:16:20 +01:00
Colin Kinloch
edb1df15ea
Added indent_style to editorconfig, fixed inconsistent use of tabs and spaces in indentation.
2017-12-14 13:52:23 +00:00
Juan Linietsky
f3ad14224e
-Add lightmapper
...
-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)
2017-12-14 09:01:27 -03:00
bruvzg
5f5c461385
Use MinGW specific binutils for debug symbols separation
2017-12-11 18:12:50 +02:00
Rémi Verschelde
a8ee9a6116
Merge pull request #14434 from Smjert/fix/13447/vsync
...
Fixes vsync setting ignored when using a separate thread for rendering
2017-12-09 13:21:36 +01:00
Rémi Verschelde
ae012f2381
Windows export: Use WINE to run rcedit on non-Windows host
...
WINE can be either run from a provided path ("export/windows/wine"),
or looked up in the system PATH.
Fixes #14441 .
2017-12-09 11:42:08 +01:00
Rémi Verschelde
3fd1c0c76b
Merge pull request #14437 from vnen/rcedit
...
Call rcedit on export for Windows desktop
2017-12-09 10:48:19 +01:00
George Marques
78a7241911
Call rcedit on export for Windows desktop
...
- Add an editor setting to read the rcedit path.
- Add settings to the export preset with icon and other exe information
(version, name, copyright, etc.)
2017-12-09 01:31:10 -02:00
Stefano Bonicatti
c067cf2c6a
Fixes vsync setting ignored when using a separate thread for rendering
...
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
2017-12-09 01:43:23 +01:00
Rémi Verschelde
13c2ff9320
Style: Apply new clang-format 5.0 style to all files
2017-12-07 08:02:00 +01:00
MrCdK
651677f033
Fix windows compilation when using MinGW
2017-12-07 04:59:11 +01:00
bruvzg
69dca1722f
Use run-time dynamic linking for AddDllDirectory and RemoveDllDirectory to support mingw-w64 build and Windows 7 with KB2533623.
2017-12-07 00:20:42 +01:00
Pedro J. Estébanez
6f3343f1ce
Remove guards for the now targeted Windows 7+
2017-12-06 23:47:09 +01:00
Pedro J. Estébanez
0d48af4afd
Add build param for targeted Windows version
2017-12-06 23:47:09 +01:00
Pedro J. Estébanez
d089e688b0
Improve/fix multitouch on Windows
...
- Fix logic error.
- Track touches to enable defensive handling and releasing on focus out.
- Change comment-out by preprocessor `#if`.
- Track/report coordinates as float.
2017-12-06 23:47:09 +01:00
Unknown
fd1b94e307
Improve slang, especially in user-visible parts
2017-12-05 15:41:38 +01:00
Juan Linietsky
0243803117
Properly take into consideration that VERTEX must be written to in opaque pre pass, does some speed up to scenes using triplanar.
2017-12-01 08:45:36 -03:00
Bastiaan Olij
4c930f3663
Needed a broader search path flag
2017-12-01 00:34:37 +11:00
Juan Linietsky
9678231b10
Changed the dynamic library open function to allow setting the path of the library to open extra libraries.
2017-11-30 10:00:55 -03:00
Rémi Verschelde
f0b43678c4
Merge pull request #13383 from Krakean/fix_whitescreen
...
Fixed fleeting window white screen on editor/game startup
2017-11-29 09:11:18 +01:00
Rhody Lugo
a65c0939fd
disable caching for targets using helper functions
2017-11-28 23:24:12 -04:00
Dmitry Koteroff
7f26fba8cb
Fixed white screen on editor/game startup by moving window displaying to a bit later phase
2017-11-29 03:49:36 +03:00
Rhody Lugo
a4a222d62d
use the same cache for all branches for appveyor
2017-11-28 03:23:33 -04:00
Rémi Verschelde
af9c67db0c
Allow customizing user:// path (folder in OS::get_data_path())
...
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 .
2017-11-26 19:02:32 +01:00