Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:redwil:15.4
wildmagic5
0001-Add-default-for-WM5_PATH.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor