moluopro
39fba218bd
Fix: Make get_space_left on Windows use current_dir instead of process CWD
2025-07-25 19:47:25 +08:00
Lukas Tenbrink
b13a0e1834
Rename String::resize
to resize_uninitialized
, to better communicate to callers that new characters must be initialized.
2025-06-11 18:13:02 +02:00
Pāvels Nadtočajevs
617e12a6b4
[Windows] Drop support for Windows 7/8/8.1.
2025-05-30 17:30:23 +03:00
Pāvels Nadtočajevs
d609cf62a0
Implement get_filesystem_type
on macOS and Linux.
2025-05-23 23:05:06 +03:00
Pāvels Nadtočajevs
563136f859
[Wine] Use _SH_DENY* flags instead of unsupported _SH_SECURE.
2025-05-14 13:50:28 +03:00
Thaddeus Crews
01fc9aee6c
Core: Modernize C headers with C++ equivalents
2025-05-02 08:23:01 -05:00
Thaddeus Crews
0964badc05
Merge pull request #105210 from nikitalita/gdsoftclass-fa-da
...
Add GDSOFTCLASS to FileAccess and DirAccess derived classes
2025-04-11 09:51:08 -05:00
A Thousand Ships
889410dcda
Add String::replace_char(s)
methods for performance and convenience
2025-04-10 13:08:45 +02:00
nikitalita
2d0ae77719
add GDSOFTCLASS to FileAccess and DirAccess derived classes
2025-04-09 11:52:50 -07:00
Pāvels Nadtočajevs
d5cea9bb2e
Implement DirAccess.is_equivalent
method.
2025-03-25 17:52:15 +02:00
bruvzg
85d3be8070
[FileAccess] Implement get_size
and get_access_time
methods.
2025-03-09 16:07:00 +02:00
Thaddeus Crews
324512e11c
Style: Replace header guards with #pragma once
2025-03-07 17:33:47 -06:00
A Thousand Ships
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
Pāvels Nadtočajevs
6597fa24a9
[Windows] Fix get_modified_time
on locked files.
2025-03-05 11:40:37 +02:00
bruvzg
f0ac8294cb
[Windows] Add missing opened file check.
2025-02-13 11:18:46 +02:00
Pāvels Nadtočajevs
e6e108d091
Implement get_length()
for pipes.
2025-02-03 16:50:00 +02:00
Yufeng Ying
1732888777
Don't open file in file_exists for Windows.
2025-01-11 21:23:24 +08:00
Ramón Grill
d848835f8c
Add support for thread naming on windows platform
2024-12-14 14:42:39 +01:00
bruvzg
d97313cd7d
[FileAccess] Set last_error
on file read/write errors.
2024-12-02 15:05:50 +02:00
Rémi Verschelde
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
bruvzg
a4b17e7852
[FileAccess] Return error codes from store_*
methods.
2024-11-29 23:22:31 +02:00
Thaddeus Crews
1dcb686325
Merge pull request #99026 from Faless/net/split_ip
...
[Net] Split Unix/Windows IP implementation
2024-11-18 09:23:43 -06:00
A Thousand Ships
68f638cf02
Use (r)find_char
instead of (r)find
for single characters
2024-11-17 10:02:18 +01:00
Fabio Alessandrelli
168a2a1466
[Net] Split Unix/Windows IP implementation
2024-11-12 17:33:47 +01:00
Thaddeus Crews
1cbe9715ea
Merge pull request #98969 from Faless/net/split_sockets
...
[Net] Split Unix/Windows NetSocket implementation
2024-11-12 09:27:40 -06:00
Fabio Alessandrelli
0c620b29cd
[Net] Split Unix/Windows NetSocket implementation
2024-11-10 16:13:50 +01:00
Valentin Cocaud
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
Pedro J. Estébanez
a5f86ee07e
Raise the amount of file handles on Windows
2024-11-07 12:13:08 +01:00
Thaddeus Crews
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
Rémi Verschelde
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
Hilderin
21f7c8a25f
Fix slow editor load on large projects (v2)
2024-09-25 17:36:39 -04:00
Thaddeus Crews
9f9ee0c813
SCons: Add unobtrusive type hints in SCons files
2024-09-25 09:34:35 -05:00
Rémi Verschelde
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
Rémi Verschelde
88e9af6b7c
Merge pull request #74830 from AThousandShips/win_time_fix
...
[Windows] Use `GetFileTime` for `FileAccess`
2024-09-11 12:34:18 +02:00
bruvzg
e16f8bae2e
[Windows] Remove _wstat use in FileAccessWindows::open_internal
2024-09-11 09:48:09 +03:00
A Thousand Ships
7139f46c9a
[Windows] Use GetFileTime
for FileAccess
...
Prevents DST from rearranging file times.
2024-09-06 13:53:46 +02:00
bruvzg
10f3c1f587
Add support for non-blocking IO mode to OS.execute_with_pipe
.
2024-09-06 14:16:39 +03:00
Rémi Verschelde
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
Yahkub-R
6db8e3b6b1
Fix Windows importer issue with new file detection
2024-09-01 10:24:29 -04:00
BlueCube3310
205a10e0ae
Reduce code duplication in FileAccess
2024-09-01 12:39:32 +02:00
bruvzg
b130cf0361
[Windows] Fix handling X: paths.
2024-08-29 15:58:59 +03:00
Saracen
6069cb3475
Fix Win32 rename function.
2024-08-29 03:54:02 +01:00
bruvzg
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
Rémi Verschelde
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
bruvzg
fc948e87f6
Add symlink API support for Windows, expose symlink methods.
2024-04-28 19:59:34 +03:00
A Thousand Ships
3679ea5d26
[Windows] Improve warning for path casing.
2024-04-27 16:49:47 +02:00
bruvzg
88b3e68f93
[FileAccess] Implement resize
method.
2024-04-12 19:20:49 +03:00
bruvzg
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
Rémi Verschelde
3a08c646ee
Pre-commit: Update to clang-format 17.0.6 and black 24.2.0
2024-02-28 14:25:35 +01:00
Muller-Castro
a8bc9f3e78
Add const lvalue ref to core/* container parameters
2024-02-14 11:20:36 -03:00