d5cea9bb2e
Implement DirAccess.is_equivalent method.
2025-03-25 17:52:15 +02:00
85d3be8070
[FileAccess] Implement get_size and get_access_time methods.
2025-03-09 16:07:00 +02:00
324512e11c
Style: Replace header guards with #pragma once
2025-03-07 17:33:47 -06:00
5113022dfe
Clean up some uses of String::substr
...
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
6597fa24a9
[Windows] Fix get_modified_time on locked files.
2025-03-05 11:40:37 +02:00
f0ac8294cb
[Windows] Add missing opened file check.
2025-02-13 11:18:46 +02:00
e6e108d091
Implement get_length() for pipes.
2025-02-03 16:50:00 +02:00
1732888777
Don't open file in file_exists for Windows.
2025-01-11 21:23:24 +08:00
d848835f8c
Add support for thread naming on windows platform
2024-12-14 14:42:39 +01:00
d97313cd7d
[FileAccess] Set last_error on file read/write errors.
2024-12-02 15:05:50 +02:00
c2f19e98bc
Merge pull request #98921 from RandomShaper/win_many_files
...
Raise the number of file handles on Windows
2024-11-29 22:46:54 +01:00
a4b17e7852
[FileAccess] Return error codes from store_* methods.
2024-11-29 23:22:31 +02:00
1dcb686325
Merge pull request #99026 from Faless/net/split_ip
...
[Net] Split Unix/Windows IP implementation
2024-11-18 09:23:43 -06:00
68f638cf02
Use (r)find_char instead of (r)find for single characters
2024-11-17 10:02:18 +01:00
168a2a1466
[Net] Split Unix/Windows IP implementation
2024-11-12 17:33:47 +01:00
1cbe9715ea
Merge pull request #98969 from Faless/net/split_sockets
...
[Net] Split Unix/Windows NetSocket implementation
2024-11-12 09:27:40 -06:00
0c620b29cd
[Net] Split Unix/Windows NetSocket implementation
2024-11-10 16:13:50 +01:00
c09731c413
Warn on filesystem case mismatch
...
When a file is opened with a wrong case, it can work on the developer system but break on a user system with a case-sensitive filesystem.
This will display a warning when it happens.
CAVEATS: It will also display the warning if a symlink is in the path.
Adapt warning if the file is a symlink. Avoid warning on symlinks.
Fix memory leak and avoid `lstat` usage.
Avoid exposing real_path when not in TOOLS_ENABLED mode.
2024-11-08 14:23:41 -08:00
a5f86ee07e
Raise the amount of file handles on Windows
2024-11-07 12:13:08 +01:00
bb5f390fb9
Style: Apply clang-tidy fixes (superficial)
...
• `modernize-use-bool-literals`, `modernize-use-nullptr`, and `readability-braces-around-statements`
2024-11-04 12:11:14 -06:00
ef7547384c
Merge pull request #95678 from Hilderin/fix-slow-load-on-large-project-v2
...
Fix slow editor load on large projects (v2)
2024-09-26 12:45:31 +02:00
21f7c8a25f
Fix slow editor load on large projects (v2)
2024-09-25 17:36:39 -04:00
9f9ee0c813
SCons: Add unobtrusive type hints in SCons files
2024-09-25 09:34:35 -05:00
e9194702a3
Merge pull request #96840 from bruvzg/open_wstat
...
[Windows] Remove `_wstat` use in `FileAccessWindows::open_internal`
2024-09-11 12:34:28 +02:00
88e9af6b7c
Merge pull request #74830 from AThousandShips/win_time_fix
...
[Windows] Use `GetFileTime` for `FileAccess`
2024-09-11 12:34:18 +02:00
e16f8bae2e
[Windows] Remove _wstat use in FileAccessWindows::open_internal
2024-09-11 09:48:09 +03:00
7139f46c9a
[Windows] Use GetFileTime for FileAccess
...
Prevents DST from rearranging file times.
2024-09-06 13:53:46 +02:00
10f3c1f587
Add support for non-blocking IO mode to OS.execute_with_pipe.
2024-09-06 14:16:39 +03:00
527c716784
Merge pull request #92167 from BlueCube3310/file-access-the-final-season-part3-ep2
...
Reduce code duplication in FileAccess
2024-09-02 12:12:42 +02:00
6db8e3b6b1
Fix Windows importer issue with new file detection
2024-09-01 10:24:29 -04:00
205a10e0ae
Reduce code duplication in FileAccess
2024-09-01 12:39:32 +02:00
b130cf0361
[Windows] Fix handling X: paths.
2024-08-29 15:58:59 +03:00
6069cb3475
Fix Win32 rename function.
2024-08-29 03:54:02 +01:00
ae334e069c
[Windows] Always use absolute UNC paths and long path aware APIs, add "long path aware" flag to the application manifest.
2024-08-28 11:15:57 +03:00
32070144af
Merge pull request #91100 from bruvzg/x_finks
...
Add symlink API support for Windows, expose symlink methods.
2024-04-29 13:00:37 +02:00
fc948e87f6
Add symlink API support for Windows, expose symlink methods.
2024-04-28 19:59:34 +03:00
3679ea5d26
[Windows] Improve warning for path casing.
2024-04-27 16:49:47 +02:00
88b3e68f93
[FileAccess] Implement resize method.
2024-04-12 19:20:49 +03:00
082b420c0a
Implement OS.execute_with_pipe method to run process with redirected stdio.
...
Implement `pipe://*` path handling for creation of named pipes.
2024-03-27 11:41:16 +02:00
3a08c646ee
Pre-commit: Update to clang-format 17.0.6 and black 24.2.0
2024-02-28 14:25:35 +01:00
a8bc9f3e78
Add const lvalue ref to core/* container parameters
2024-02-14 11:20:36 -03:00
c5e1b327c6
Fix invalid file path handling in Windows when there is dot in the file name
...
This basically re-adds dot-removal removed by the previous commit.
2024-02-13 10:39:03 +01:00
be8f60a78d
[Windows] Fix windows is_path_invalid, and apply it to directory creation.
2024-02-09 10:47:07 +02:00
6ed1731746
Use platform-specific methods for FileAccess reading and writing
2023-10-29 17:34:18 +01:00
97bcd8a631
Add method to check if filesystem is case sensitive.
2023-10-09 11:00:15 +03:00
814ab59c37
Windows: Remove MSVC define redundant with _MSC_VER
...
Cleanup unused MSVC code in FileAccessUnix.
2023-09-26 11:11:45 +02:00
3565d1bf7e
[Drivers,Platform] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
2023-09-12 20:13:32 +02:00
8de6405288
UWP: Remove platform port, needs to be redone from scratch for 4.x
...
The UWP platform port was never ported to the Godot 4.0+ API,
and it's now accumulating bitrot as it doesn't compile, and thus
we no longer propagate platform changes in it.
So we finally remove to acknowledge this state. There's still some
interest in reviving the UWP port eventually, especially as support
for Direct3D 12 will soon be merged, but when that happens it will
be easiest to redo it from scratch.
2023-09-07 15:01:59 +02:00
49177b6eeb
Make Windows' safe save more resilient
2023-08-25 18:28:35 +02:00
8aa6f29b56
[FileAccess] Add methods to get/set "hidden" and "read-only" attributes on macOS/BSD and Windows.
2023-08-08 21:51:32 +03:00