mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-23 14:56:16 +00:00
72 lines
2.8 KiB
Diff
72 lines
2.8 KiB
Diff
diff --git a/modules/gltf/editor/editor_scene_importer_blend.cpp b/modules/gltf/editor/editor_scene_importer_blend.cpp
|
|
index 7dcdc8e..13e872c 100644
|
|
--- a/modules/gltf/editor/editor_scene_importer_blend.cpp
|
|
+++ b/modules/gltf/editor/editor_scene_importer_blend.cpp
|
|
@@ -450,9 +450,7 @@
|
|
|
|
#elif defined(UNIX_ENABLED)
|
|
Vector<String> find_paths = {
|
|
- "/usr/bin/blender",
|
|
- "/usr/local/bin/blender",
|
|
- "/opt/blender/bin/blender",
|
|
+ "@TERMUX_PREFIX@/bin/blender",
|
|
};
|
|
#endif
|
|
|
|
diff --git a/modules/mono/editor/GodotTools/GodotTools/Build/DotNetFinder.cs b/modules/mono/editor/GodotTools/GodotTools/Build/DotNetFinder.cs
|
|
index b437c7e..882b22c 100644
|
|
--- a/modules/mono/editor/GodotTools/GodotTools/Build/DotNetFinder.cs
|
|
+++ b/modules/mono/editor/GodotTools/GodotTools/Build/DotNetFinder.cs
|
|
@@ -21,13 +21,13 @@ namespace GodotTools.Build
|
|
{
|
|
if (RuntimeInformation.OSArchitecture == Architecture.X64)
|
|
{
|
|
- string dotnet_x64 = "/usr/local/share/dotnet/x64/dotnet"; // Look for x64 version, when running under Rosetta 2.
|
|
+ string dotnet_x64 = "@TERMUX_PREFIX@/share/dotnet/x64/dotnet"; // Look for x64 version, when running under Rosetta 2.
|
|
if (File.Exists(dotnet_x64))
|
|
{
|
|
return dotnet_x64;
|
|
}
|
|
}
|
|
- string dotnet = "/usr/local/share/dotnet/dotnet"; // Look for native version.
|
|
+ string dotnet = "@TERMUX_PREFIX@/share/dotnet/dotnet"; // Look for native version.
|
|
if (File.Exists(dotnet))
|
|
{
|
|
return dotnet;
|
|
diff --git a/modules/mono/editor/hostfxr_resolver.cpp b/modules/mono/editor/hostfxr_resolver.cpp
|
|
index 786272b..2ddab17 100644
|
|
--- a/modules/mono/editor/hostfxr_resolver.cpp
|
|
+++ b/modules/mono/editor/hostfxr_resolver.cpp
|
|
@@ -211,7 +211,7 @@ bool get_default_installation_dir(String &r_dotnet_root) {
|
|
|
|
return true;
|
|
#else
|
|
- r_dotnet_root = "/usr/share/dotnet";
|
|
+ r_dotnet_root = "@TERMUX_PREFIX@/share/dotnet";
|
|
return true;
|
|
#endif
|
|
}
|
|
diff --git a/thirdparty/openxr/src/loader/manifest_file.cpp b/thirdparty/openxr/src/loader/manifest_file.cpp
|
|
index 1b0ef07..b1baded 100644
|
|
--- a/thirdparty/openxr/src/loader/manifest_file.cpp
|
|
+++ b/thirdparty/openxr/src/loader/manifest_file.cpp
|
|
@@ -40,15 +40,15 @@
|
|
#include <vector>
|
|
|
|
#ifndef FALLBACK_CONFIG_DIRS
|
|
-#define FALLBACK_CONFIG_DIRS "/etc/xdg"
|
|
+#define FALLBACK_CONFIG_DIRS "@TERMUX_PREFIX@/etc/xdg"
|
|
#endif // !FALLBACK_CONFIG_DIRS
|
|
|
|
#ifndef FALLBACK_DATA_DIRS
|
|
-#define FALLBACK_DATA_DIRS "/usr/local/share:/usr/share"
|
|
+#define FALLBACK_DATA_DIRS "@TERMUX_PREFIX@/share"
|
|
#endif // !FALLBACK_DATA_DIRS
|
|
|
|
#ifndef SYSCONFDIR
|
|
-#define SYSCONFDIR "/etc"
|
|
+#define SYSCONFDIR "@TERMUX_PREFIX@/etc"
|
|
#endif // !SYSCONFDIR
|
|
|
|
#ifdef XR_USE_PLATFORM_ANDROID
|