docs: Document that std::filesystem::temp_directory_path() is unsafe

This commit is contained in:
Asahi Lina committed 2024-11-20 02:05:32 +09:00
1 parent d761fc44f4
commit c3e8cd8d30
1 file changed
+3
+3
View File
@@ -79,6 +79,9 @@ Use `FHU::Filesystem::GetFilename` instead.
#### std::filesystem::copy_file
Use `FHU::Filesystem::CopyFile` instead.
#### std::filesystem::temp_directory_path
See `GetTempFolder()` in `FEXServerClient.cpp` (split/move to `FHU::Filesystem` if needed by other users).
### `std::fstream`
This API always allocates memory and should be avoided.
Use a combination of open and fextl::string APIs instead of fstream.