1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Merge pull request #113398 from Eshaan-byte/fix-moviewriter-disk-space-check

Fix MovieWriter checking wrong directory for disk space
This commit is contained in:
Rémi Verschelde
2025-12-02 14:17:10 +01:00

View File

@@ -114,7 +114,7 @@ void MovieWriter::begin(const Size2i &p_movie_size, uint32_t p_fps, const String
// Check for available disk space and warn the user if needed.
Ref<DirAccess> dir = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
String path = p_base_path.get_basename();
String path = p_base_path.get_base_dir();
if (path.is_relative_path()) {
path = "res://" + path;
}