base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / graphics / goverlay / find-xdg-data-files.patch
blob17ba9ed1140ed812065ab5714ce615fce055857f
1 diff --git a/overlayunit.pas b/overlayunit.pas
2 index 97a088d..4c42414 100644
3 --- a/overlayunit.pas
4 +++ b/overlayunit.pas
5 @@ -5007,7 +5007,7 @@ begin
6 //Determine Mangohud dependency status
8 //locate MangoHud and store result in tmp folder
9 - RunCommand('bash -c ''find /usr/share/vulkan/implicit_layer.d/MangoHud.json >> /tmp/goverlay/dependency_mangohud''', s);
10 + RunCommand('bash -c ''find-xdg-data-files vulkan/implicit_layer.d/MangoHud.json >> /tmp/goverlay/dependency_mangohud''', s);
12 // Assign Text file dependency_mangohud to variable mangohudVAR
13 AssignFile(mangohudVAR, '/tmp/goverlay/dependency_mangohud');
14 @@ -5016,7 +5016,7 @@ begin
15 CloseFile(mangohudVAR);
17 // Read String and store value on mangohuddependencyVALUE based on result
18 - if mangohudSTR = '/usr/share/vulkan/implicit_layer.d/MangoHud.json' then
19 + if mangohudSTR <> '' then
20 mangohuddependencyVALUE := 1
21 else
22 mangohuddependencyVALUE := 0;
23 @@ -5025,7 +5025,7 @@ begin
24 //Determine vkBasalt dependency staus
26 //locate vkBasalt and store result in tmp folder
27 - RunCommand('bash -c ''find /usr/share/vulkan/implicit_layer.d/vkBasalt.json >> /tmp/goverlay/dependency_vkbasalt''', s);
28 + RunCommand('bash -c ''find-xdg-data-files vulkan/implicit_layer.d/vkBasalt.json >> /tmp/goverlay/dependency_vkbasalt''', s);
30 // Assign Text file dependency_mangohud to variable mangohudVAR
31 AssignFile(vkbasaltVAR, '/tmp/goverlay/dependency_vkbasalt');
32 @@ -5034,7 +5034,7 @@ begin
33 CloseFile(vkbasaltVAR);
35 // Read String and store value on vkbasaltdependencyVALUE based on result
36 - if vkbasaltSTR = '/usr/share/vulkan/implicit_layer.d/vkBasalt.json' then
37 + if vkbasaltSTR <> '' then
38 vkbasaltdependencyVALUE := 1
39 else
40 vkbasaltdependencyVALUE := 0;