You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
-made get_space_left() return values more homogenous, also for script, converted to mb, closes #4617
This commit is contained in:
@@ -359,7 +359,8 @@ FileType DirAccessWindows::get_file_type(const String& p_file) const {
|
||||
size_t DirAccessWindows::get_space_left() {
|
||||
|
||||
uint64_t bytes = 0;
|
||||
GetDiskFreeSpaceEx(NULL,(PULARGE_INTEGER)&bytes,NULL,NULL);
|
||||
if (!GetDiskFreeSpaceEx(NULL,(PULARGE_INTEGER)&bytes,NULL,NULL))
|
||||
return 0;
|
||||
|
||||
//this is either 0 or a value in bytes.
|
||||
return (size_t)bytes;
|
||||
|
||||
Reference in New Issue
Block a user