diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-21 11:28:31 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-21 11:28:31 +0100 |
| commit | a58f6a9dd6dd86743134b838fd1c89f844bd961b (patch) | |
| tree | 640198ae02a408aab50b2d4821f2402070af04dd /drivers/windows/file_access_windows.h | |
| parent | 7b622ce6e8a40508dbfccb21380e5f0b2dd45fac (diff) | |
| parent | c5390f203d6756db1ea74456a80247498679168e (diff) | |
Merge pull request #71220 from reduz/prevent-opening-windows-console-files
Prevent opening Windows console files
Diffstat (limited to 'drivers/windows/file_access_windows.h')
| -rw-r--r-- | drivers/windows/file_access_windows.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/windows/file_access_windows.h b/drivers/windows/file_access_windows.h index 832cef3363..2b9960d494 100644 --- a/drivers/windows/file_access_windows.h +++ b/drivers/windows/file_access_windows.h @@ -50,6 +50,9 @@ class FileAccessWindows : public FileAccess { void _close(); + static bool is_path_invalid(const String &p_path); + static HashSet<String> invalid_files; + public: virtual Error open_internal(const String &p_path, int p_mode_flags) override; ///< open a file virtual bool is_open() const override; ///< true when file is open @@ -79,6 +82,9 @@ public: virtual uint32_t _get_unix_permissions(const String &p_file) override; virtual Error _set_unix_permissions(const String &p_file, uint32_t p_permissions) override; + static void initialize(); + static void finalize(); + FileAccessWindows() {} virtual ~FileAccessWindows(); }; |