File 0001-Add-default-for-WM5_PATH.patch of Package wildmagic5
From 2d5c9f15b2e134e535edbb5b959253e4fd6a0362 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Sun, 28 Aug 2022 16:15:05 +0200
Subject: [PATCH] Add default for WM5_PATH
Instead of using a wrapper script for each sample app, set the path
as default value.
---
WildMagic5/LibApplications/Wm5Application.cpp | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/WildMagic5/LibApplications/Wm5Application.cpp b/WildMagic5/LibApplications/Wm5Application.cpp
index ece5787..2f9fb90 100644
--- a/WildMagic5/LibApplications/Wm5Application.cpp
+++ b/WildMagic5/LibApplications/Wm5Application.cpp
@@ -57,14 +57,7 @@ int main (int numArguments, char* arguments[])
#endif
if (Application::WM5Path == "")
{
- assertion(false, "Please set the WM5_PATH environment variable.\n");
- std::ofstream outFile("ApplicationError.txt");
- if (outFile)
- {
- outFile << "Please set the WM5_PATH environment variable.\n";
- outFile.close();
- }
- return INT_MAX;
+ Application::WM5Path = "/usr/share/WildMagic/";
}
Application::WM5Path += "/";
--
2.37.1