mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Made the loop more efficient
Signed-off-by: SwitchAxe <sofiacerasuoli@gmail.com>
This commit is contained in:
parent
6321db5942
commit
8aba994312
1 changed files with 4 additions and 2 deletions
|
|
@ -79,8 +79,10 @@ bool processZIP(ShaderPack& pack, ProcessingLevel level)
|
|||
// there are multiple, the first one is picked.
|
||||
bool isShaderPresent = false;
|
||||
for (QString f : files) {
|
||||
if (zip.exists(f + "/shaders"))
|
||||
isShaderPresent = true;
|
||||
if (zip.exists(f + "/shaders")) {
|
||||
isShaderPresent = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isShaderPresent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue