Made the loop more efficient
Signed-off-by: SwitchAxe <sofiacerasuoli@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user