Made the loop more efficient

Signed-off-by: SwitchAxe <sofiacerasuoli@gmail.com>
This commit is contained in:
SwitchAxe
2026-01-12 03:36:52 +01:00
parent 6321db5942
commit 8aba994312

View File

@@ -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)