1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fix code style issues

This commit is contained in:
Rémi Verschelde
2019-01-26 22:35:31 +01:00
parent 16fa788510
commit c3b0ee5941
9 changed files with 20 additions and 26 deletions

View File

@@ -347,27 +347,27 @@ size_t DirAccessWindows::get_space_left() {
}
String DirAccessWindows::get_filesystem_type() const {
String path = fix_path(const_cast<DirAccessWindows*>(this)->get_current_dir());
print_line("fixed path: "+path);
String path = fix_path(const_cast<DirAccessWindows *>(this)->get_current_dir());
print_line("fixed path: " + path);
int unit_end = path.find(":");
ERR_FAIL_COND_V(unit_end==-1,String());
String unit = path.substr(0,unit_end+1) + "\\";
print_line("unit: "+unit);
ERR_FAIL_COND_V(unit_end == -1, String());
String unit = path.substr(0, unit_end + 1) + "\\";
print_line("unit: " + unit);
WCHAR szVolumeName[100];
WCHAR szFileSystemName[10];
DWORD dwSerialNumber = 0;
DWORD dwMaxFileNameLength = 0;
DWORD dwFileSystemFlags = 0;
DWORD dwSerialNumber = 0;
DWORD dwMaxFileNameLength = 0;
DWORD dwFileSystemFlags = 0;
if(::GetVolumeInformationW(unit.c_str(),
szVolumeName,
sizeof(szVolumeName),
&dwSerialNumber,
&dwMaxFileNameLength,
&dwFileSystemFlags,
szFileSystemName,
sizeof(szFileSystemName)) == TRUE) {
if (::GetVolumeInformationW(unit.c_str(),
szVolumeName,
sizeof(szVolumeName),
&dwSerialNumber,
&dwMaxFileNameLength,
&dwFileSystemFlags,
szFileSystemName,
sizeof(szFileSystemName)) == TRUE) {
return String(szFileSystemName);
}