summaryrefslogtreecommitdiffstats
path: root/platform/windows/os_windows.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@f128f383e892865379cb8b14e7bcc9858efe2973Spartan3222024-11-271-1/+2
|\
| * Merge pull request #98862 from HuntJSparra/early-projsettings-registrationThaddeus Crews2024-11-261-1/+2
| |\ | | | | | | | | | Register Engine, OS, ProjectSettings, and Time singletons in time for for `INITIZATION_LEVEL_CORE`
| | * Register Engine, OS, ProjectSettings, and Time early.Hunt J. Sparra2024-11-211-1/+2
| | |
* | | Merge commit godotengine/godot@d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ceSpartan3222024-11-261-17/+5
|\| |
| * | Merge pull request #99542 from bruvzg/stdin_strThaddeus Crews2024-11-251-1/+1
| |\ \ | | | | | | | | | | | | Convert line breaks to `\n` and strip line break from the end of string returned by `OS::read_string_from_stdin`/`OS::get_stdin_string`.
| | * | Convert line breaks to `\n` and strip line break from the end of string ↵Pāvels Nadtočajevs2024-11-231-1/+1
| | |/ | | | | | | | | | returned by `OS::read_string_from_stdin`/`OS::get_stdin_string`.
| * / Revert "Make delay_usec more precise"Rémi Verschelde2024-11-251-16/+4
| |/ | | | | | | | | | | This reverts commit df3367f3343ec5acc579205479642d7275f3e12b. Fixes #99593.
* | Merge commit godotengine/godot@fd4c29a189e53a1e085df5b9b9a05cac9351b3efSpartan3222024-11-191-5/+19
|\|
| * Merge pull request #99178 from mrsaturnsan/windows_sleep_precisionThaddeus Crews2024-11-181-4/+16
| |\ | | | | | | | | | Make `delay_usec` more precise on Windows to fix framepacing
| | * Make delay_usec more precisemrsaturnsan2024-11-161-4/+16
| | | | | | | | | | | | Comment fix
| * | Merge pull request #99026 from Faless/net/split_ipThaddeus Crews2024-11-181-1/+2
| |\ \ | | | | | | | | | | | | [Net] Split Unix/Windows IP implementation
| | * | [Net] Split Unix/Windows IP implementationFabio Alessandrelli2024-11-121-1/+2
| | | |
| * | | Disable Nahimic code injection.bruvzg2024-11-181-0/+1
| | | |
* | | | Merge commit godotengine/godot@6c05ec3d6732cac44cf85c91db7d3fd1075bcb23Spartan3222024-11-151-2/+2
|\| | |
| * | | Fix 32-bit Windows build.Pāvels Nadtočajevs2024-11-151-2/+2
| | | |
* | | | Merge commit godotengine/godot@cb411fa960f0b7fdbd97dcdb4c90f9346360ee0eSpartan3222024-11-121-30/+246
|\| | |
| * | | Merge pull request #91201 from bruvzg/con_typeThaddeus Crews2024-11-121-4/+149
| |\ \ \ | | | | | | | | | | | | | | | [OS] Add functions to determine standard I/O device type.
| | * | | [OS] Add functions to determine standard I/O device type.bruvzg2024-11-061-4/+149
| | | | |
| * | | | Merge pull request #99107 from RandomShaper/win_less_inheritanceThaddeus Crews2024-11-121-23/+66
| |\ \ \ \ | | |_|/ / | |/| | | | | | | | Windows: Avoid child processes inheriting all file handles
| | * | | Windows: Avoid child processes inheriting all file handlesPedro J. Estébanez2024-11-121-23/+66
| | |/ /
| * | | Merge pull request #99112 from bruvzg/get_model_nameThaddeus Crews2024-11-121-0/+28
| |\ \ \ | | | | | | | | | | | | | | | Implement `get_model_name` on macOS and Windows.
| | * | | Implement `get_model_name` on macOS and Windows.Pāvels Nadtočajevs2024-11-121-0/+28
| | |/ /
| * / / [Net] Split Unix/Windows NetSocket implementationFabio Alessandrelli2024-11-101-3/+3
| |/ /
* | | Merge commit godotengine/godot@87318a2fb7fffeb72adca934e31915be077c3d1fSpartan3222024-11-061-7/+7
|\| |
| * | Style: Apply `clang-tidy` fixes (superficial)Thaddeus Crews2024-11-041-7/+7
| |/ | | | | | | • `modernize-use-bool-literals`, `modernize-use-nullptr`, and `readability-braces-around-statements`
* | Merge commit godotengine/godot@8004c7524fb9f43425c4d6f614410a76678e0f7cSpartan3222024-10-301-1/+1
|\|
| * Set clang-format `RemoveSemicolon` rule to `true`Adam Scott2024-10-251-1/+1
| | | | | | | | - Set clang-format `Standard` rule to `c++20`
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Merge pull request #94839 from alvinhochun/win-set-console-modeRémi Verschelde2024-09-181-1/+3
|\ | | | | | | Combine existing modes when calling SetConsoleMode
| * Combine existing modes when calling SetConsoleModeAlvin Wong2024-07-281-1/+3
| | | | | | | | | | Otherwise the default modes will be cleared, which causes long lines to be truncated in some terminals (e.g. Windows Terminal).
* | [Windows] Only use long executable path when necessary, fix broken apksigner ↵bruvzg2024-09-101-1/+1
| | | | | | | | detection.
* | Add support for non-blocking IO mode to `OS.execute_with_pipe`.bruvzg2024-09-061-3/+3
| |
* | [Windows] Use the same API for all `OS_Windows::*_environment` functions.bruvzg2024-09-031-10/+1
| |
* | [Windows] Fix OS.open_dynamic_librarybruvzg2024-08-281-5/+5
| |
* | [Windows] Always use absolute UNC paths and long path aware APIs, add "long ↵bruvzg2024-08-281-22/+89
| | | | | | | | path aware" flag to the application manifest.
* | Merge pull request #96192 from dsnopek/windows-gdext-adddlldirectoryRémi Verschelde2024-08-281-1/+2
|\ \ | | | | | | | | | Windows: Call `AddDllDirectory()` with an absolute path
| * | Windows: Call `AddDllDirectory()` with an absolute pathDavid Snopek2024-08-271-1/+2
| | |
* | | Merge pull request #93985 from alvinhochun/windows-gpu-prefRémi Verschelde2024-08-281-0/+66
|\ \ \ | |/ / |/| | | | | Respect integrated GPU preference in Windows Settings
| * | Support GPU preference for MS Store packaged appsAlvin Wong2024-07-161-5/+23
| | |
| * | Respect integrated GPU preference in Windows SettingsAlvin Wong2024-07-161-0/+48
| |/
* | Remove confusing USER prefix from script-logged errorsSébastien Dunne Fulmer2024-08-271-8/+2
| |
* | Fix reload of GDExtension libraries in framework package on macosJoel Croteau2024-08-081-15/+15
|/ | | | | | | | | | | | | | | | | | | | | `GDExtension::open_library` has a check in it to see if the library was loaded from a temp file, and if it was to restore the original name as that is the one we actually care about. This check is breaking extension reloading on Mac when the library path is to a framework folder, as the file inside the framework will not generally be the same name as the folder. This check also shouldn't be necessary even on Windows, which is the only platform that uses `generate_temp_files`, since disposal of the created temp file is handled within `OS_Windows::open_dynamic_library`, and `GDExtension::open_library` (which is the only function to call `open_dynamic_library` with a `p_data` argument) only cares about the original library file path and has to do extra work to remove the name of the temp file. Instead, I have removed that check and set `OS_Windows::open_dynamic_library` to return the name of the original file and not the name of the copy. This fixes GDExtension reloading on macOS. I do not have a Windows machine available to test that it still works properly on Windows, so someone should check that before merging this.
* Remove unused `is_wow64` method in `OS_Windows`Rémi Verschelde2024-07-111-20/+0
| | | | | It was added in b4d369c88 for `get_processor_count`, but this was later changed to rely on `std::thread` in 6bf02c016.
* [Windows] Improve console IO redirection.bruvzg2024-04-271-7/+27
|
* Collapse the gdextension arguments into the `GDExtensionData` structFredia Huya-Kouadio2024-04-191-8/+8
| | | | This is used to reduce the number of arguments to `OS::open_dynamic_library(...)`.
* Fix loading GDExtension dependencies on AndroidFredia Huya-Kouadio2024-04-191-1/+1
|
* Add get_process_exit_code() methodkobewi2024-04-161-1/+40
|
* Add renaming of PDB files to avoid blocking themDmitriySalnikov2024-04-051-3/+60
|
* Implement `OS.execute_with_pipe` method to run process with redirected stdio.bruvzg2024-03-271-0/+101
| | | | Implement `pipe://*` path handling for creation of named pipes.