Jelajahi Sumber

Fix Linux build without fontconfig.

bruvzg 3 tahun lalu
induk
melakukan
f86448520a
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      platform/linuxbsd/os_linuxbsd.cpp

+ 3 - 3
platform/linuxbsd/os_linuxbsd.cpp

@@ -371,7 +371,7 @@ Vector<String> OS_LinuxBSD::get_system_fonts() const {
 	}
 	return ret;
 #else
-	ERR_FAIL_COND_V_MSG(Vector<String>(), "Godot was compiled without fontconfig, system font support is disabled.")
+	ERR_FAIL_V_MSG(Vector<String>(), "Godot was compiled without fontconfig, system font support is disabled.");
 #endif
 }
 
@@ -410,10 +410,10 @@ String OS_LinuxBSD::get_system_font_path(const String &p_font_name, bool p_bold,
 		FcPatternDestroy(pattern);
 	}
 	FcObjectSetDestroy(object_set);
+	return ret;
 #else
-	ERR_FAIL_COND_V_MSG(Vector<String>(), "Godot was compiled without fontconfig, system font support is disabled.")
+	ERR_FAIL_V_MSG(String(), "Godot was compiled without fontconfig, system font support is disabled.");
 #endif
-	return ret;
 }
 
 String OS_LinuxBSD::get_config_path() const {