We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d44de34 commit 9b25785Copy full SHA for 9b25785
MipMapTool.cpp
@@ -159,6 +159,11 @@ int main(int argc, char* argv[]) {
159
allArguments.erase(namestyleArg);
160
}
161
162
+ auto highestMIPArg = std::find_if(allArguments.begin(), allArguments.end(), [](const std::string& arg) {
163
+ return arg.starts_with("-onlyHighestMip");
164
+ });
165
+
166
167
if (firstArg == "unpack") {
168
std::cout << "Unpacking files:\n";
169
allArguments.erase(allArguments.begin());
@@ -175,6 +180,7 @@ int main(int argc, char* argv[]) {
175
180
std::filesystem::path outputPath = makeOutputPath(inputFile, mipmap, namestyle);
176
181
177
182
newFile->writeToFile(outputPath);
183
+ if (highestMIPArg != allArguments.end()) return 0;
178
184
179
185
186
return 0;
0 commit comments